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