示例#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())