Fixed HTTP exceptions not returning with correct HTTP status code

This commit is contained in:
Joel Collins 2019-02-20 13:26:21 +00:00
parent 3bf3b0f0c2
commit b9bb89ce3f

View file

@ -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