mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-19 15:16:33 +00:00
Change status code on api error
This commit is contained in:
parent
0393db19e6
commit
43f4b36cfe
@ -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):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user