Change status code on api error

This commit is contained in:
Pascal Vizeli 2017-04-27 16:25:49 +02:00 committed by GitHub
parent 0393db19e6
commit 43f4b36cfe

View File

@ -81,7 +81,7 @@ def api_return_error(message=None):
return web.json_response({ return web.json_response({
JSON_RESULT: RESULT_ERROR, JSON_RESULT: RESULT_ERROR,
JSON_MESSAGE: message, JSON_MESSAGE: message,
}) }, status=400)
def api_return_ok(data=None): def api_return_ok(data=None):