aboutsummaryrefslogtreecommitdiff
path: root/app/handlers/base.py
diff options
context:
space:
mode:
authorMilo Casagrande <milo.casagrande@linaro.org>2014-08-12 16:50:27 +0200
committerMilo Casagrande <milo.casagrande@linaro.org>2014-08-12 16:50:27 +0200
commit735a942b737bb5aab1f7f99b4415420a28a6ea69 (patch)
tree46cbdd80bed9042d598321ddbba67170abd75bb9 /app/handlers/base.py
parentbe8bb48b53217722171e1f60e18693e252cd066e (diff)
handlers: Fix HTTP status code to 422.
Change-Id: I9ce925c643189aa832568950cdc68d14935af50b
Diffstat (limited to 'app/handlers/base.py')
-rw-r--r--app/handlers/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/handlers/base.py b/app/handlers/base.py
index 6a8def2..3c94255 100644
--- a/app/handlers/base.py
+++ b/app/handlers/base.py
@@ -214,7 +214,7 @@ class BaseHandler(RequestHandler):
except ValueError:
error = "No JSON data found in the POST request"
self.log.error(error)
- response = HandlerResponse(420)
+ response = HandlerResponse(422)
response.reason = error
response.result = None
else: