From d48fd0ff744f96af3441af2619c4b4611955a0a2 Mon Sep 17 00:00:00 2001 From: Gleyberson Andrade Date: Thu, 16 Jul 2020 12:01:29 -0300 Subject: [PATCH] Change API server status HTTP code to 200 Today, when Kytos REST API is used to get API Server status, you get return code 201 instead of 200. This commit solves this problem, changing the HTTP code. --- kytos/core/api_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kytos/core/api_server.py b/kytos/core/api_server.py index d1be513e2..b14d80d0a 100644 --- a/kytos/core/api_server.py +++ b/kytos/core/api_server.py @@ -138,7 +138,7 @@ def _register_web_ui(self): @staticmethod def status_api(): """Display kytos status using the route ``/kytos/status/``.""" - return '{"response": "running"}', HTTPStatus.CREATED.value + return '{"response": "running"}', HTTPStatus.OK.value def stop_api_server(self): """Send a shutdown request to stop Api Server."""