Merge pull request #4526 from lbm98/docfix

This commit is contained in:
David Lord 2022-04-08 11:02:45 -07:00 committed by GitHub
commit 5c0b9a6af3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -489,7 +489,7 @@ This is a simple example:
@app.errorhandler(InvalidAPIUsage)
def invalid_api_usage(e):
return jsonify(e.to_dict())
return jsonify(e.to_dict()), e.status_code
# an API app route for getting user information
# a correct request might be /api/user?user_id=420