Fixed HTTP exceptions not returning with correct HTTP status code
This commit is contained in:
parent
3bf3b0f0c2
commit
b9bb89ce3f
1 changed files with 1 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ class JSONExceptionHandler(object):
|
|||
'status_code': status_code,
|
||||
'message': message
|
||||
}
|
||||
return jsonify(response)
|
||||
return jsonify(response), status_code
|
||||
|
||||
def init_app(self, app):
|
||||
self.app = app
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue