diff options
| author | leonoverweel <l.overweel@gmail.com> | 2017-04-04 15:23:00 +0200 |
|---|---|---|
| committer | leonoverweel <l.overweel@gmail.com> | 2017-04-04 15:23:00 +0200 |
| commit | fd0376c5a8f018457a11bb0f9602bda366571955 (patch) | |
| tree | fdad42c44a147e03101925ffd4d62a869bac4490 /main.py | |
| parent | 2a4954077362d7b81a36a59580487972453180b4 (diff) | |
Return proper status codes of HTTP
Instead of always 200
Diffstat (limited to 'main.py')
| -rw-r--r-- | main.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -142,7 +142,9 @@ def api_call(version, endpoint_path): ) sys.stdout.flush() - return jsonify(json.loads(response.to_JSON())) + flask_response = jsonify(json.loads(response.to_JSON())) + flask_response.status_code = response.status['code'] + return flask_response @SOCKET_IO_CORE.on('request') def receive_message(message): |
