Error Handling
Here is an example of all possible errors the api could return.
If you have a bad connection to the server or the server is down, you may need to add additional error handing to work with failed requests.
The HTTP Response Code will be correct for the displayed error. Success responses will always have a response code of 200
400 - Bad Request
{
"success": "false",
"error": "400",
"errorMessage": "Bad Request"
}
401 - Bad Authentication
{
"success": "false",
"error": "401",
"errorMessage": "Bad Request"
}
404 - Endpoint Not Found
{
"success": "false",
"error": "404",
"errorMessage": "Endpoint Not Found"
}
500 - Internal Server Error
{
"success": "false",
"error": "500",
"errorMessage": "Internal Server Error"
}
Last modified: 23 February 2025