Skip to content

Commit

Permalink
Less confusing status codes
Browse files Browse the repository at this point in the history
  • Loading branch information
sfan5 committed Jul 17, 2019
1 parent 794807c commit ac66259
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server.py
Expand Up @@ -81,7 +81,7 @@ def announce():

if action == "delete":
if not old:
return "Server not found.", 500
return "Server not found."
serverList.remove(old)
serverList.save()
return "Removed from server list."
Expand All @@ -96,7 +96,7 @@ def announce():
old["updates"] = 0
old["total_clients"] = 0
else:
return "Server to update not found.", 500
return "Server to update not found."

server["update_time"] = time.time()

Expand Down Expand Up @@ -132,7 +132,7 @@ def announce():

finishRequestAsync(server)

return "Thanks, your request has been filed.", 202
return "Request has been filed.", 202

# Utilities

Expand Down

0 comments on commit ac66259

Please sign in to comment.