Browse Source

Merge pull request #890 from seancron/documentation-fix

Documentation fix: Makes the error names consistent
pull/891/merge
Daniel Neuhäuser 11 years ago
parent
commit
4212e67d29
  1. 2
      docs/patterns/apierrors.rst

2
docs/patterns/apierrors.rst

@ -47,7 +47,7 @@ At that point views can raise that error, but it would immediately result
in an internal server error. The reason for this is that there is no
handler registered for this error class. That however is easy to add::
@app.errorhandler(InvalidAPIUsage)
@app.errorhandler(InvalidUsage)
def handle_invalid_usage(error):
response = jsonify(error.to_dict())
response.status_code = error.status_code

Loading…
Cancel
Save