Example #1
0
def internal_server_error(e):
    return error(status=500, detail='Internal Server Error')
Example #2
0
def gone(e):
    return error(status=410, detail='Gone')
Example #3
0
def method_not_allowed(e):
    return error(status=405, detail='Method Not Allowed')
Example #4
0
def page_not_found(e):
    return error(status=404, detail='Not Found')
Example #5
0
def forbidden(e):
    return error(status=403, detail='Forbidden')
Example #6
0
def internal_server_error(e):
    return error(status=500, detail=str(e), traceback=traceback.format_exc())