Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

Commit

Permalink
Change API server status HTTP code to 200
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
gleybersonandrade committed Jul 16, 2020
1 parent ffbb83e commit d48fd0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kytos/core/api_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down

0 comments on commit d48fd0f

Please sign in to comment.