From b9bb89ce3f2348a90f5bd0492916341dc76c8467 Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Wed, 20 Feb 2019 13:26:21 +0000 Subject: [PATCH] Fixed HTTP exceptions not returning with correct HTTP status code --- openflexure_microscope/api/exceptions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openflexure_microscope/api/exceptions.py b/openflexure_microscope/api/exceptions.py index d0bc489e..95e03fd8 100644 --- a/openflexure_microscope/api/exceptions.py +++ b/openflexure_microscope/api/exceptions.py @@ -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