Standardized and implemented uniform HTTP status codes across API routes.
Implemented JSON based response content for API routes.
-- Example Structure: {"status":"error", "code":503, "message":"Error internal database failure!"}
Fixed Incorrect Indention
This incorrect indention resulted in all request to the API returning an HTTP status code of 200 or OK.
Updates Discord Module to Reflect API Changes
Updated the discord commands that interface with the API to properly expect and handle the new JSON formatted data. Checking for the status code is not particularly important as the value in "message" is designed to inform the user of success or failure. In the event that "message" cannot be found in the response content, a generalized "Back-end server error!" will be returned.
Reworked the API's HTTP Responses Resolves #26
Fixed Incorrect Indention This incorrect indention resulted in all request to the API returning an HTTP status code of 200 or OK.
Updates Discord Module to Reflect API Changes Updated the discord commands that interface with the API to properly expect and handle the new JSON formatted data. Checking for the status code is not particularly important as the value in "message" is designed to inform the user of success or failure. In the event that "message" cannot be found in the response content, a generalized "Back-end server error!" will be returned.