From 43f4b36cfeb4007a2158f427092a1b983bd59917 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Thu, 27 Apr 2017 16:25:49 +0200 Subject: [PATCH] Change status code on api error --- hassio/api/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hassio/api/util.py b/hassio/api/util.py index 70a1eee7c..5204e9079 100644 --- a/hassio/api/util.py +++ b/hassio/api/util.py @@ -81,7 +81,7 @@ def api_return_error(message=None): return web.json_response({ JSON_RESULT: RESULT_ERROR, JSON_MESSAGE: message, - }) + }, status=400) def api_return_ok(data=None):