Error Handling

Errors

The BriteAPI uses conventional HTTP response codes to indicate the success or failure of an API request. In general, codes in the 2xx range indicate success, codes in the 4xx range indicate an error that failed given the information provided (e.g., a required parameter was omitted), and codes in the 5xx range indicate an error with BriteAPI servers (these are rare).

The BriteAPI uses the following error codes:

Error CodeMeaning
400Bad Request – Your request is invalid
401Unauthorized – Your API key is wrong
403Rate Limit Exceeded – The API is rate limited to 100 requests per second, per client. Try again later.
404Not Found – The specified resource could not be found
405Method Not Allowed – You tried to access a resource with an invalid method
406Not Acceptable – You requested a format that isn't JSON
410Gone – The resource requested has been removed from our servers
500Internal Server Error – We had a problem with our server. Try again later.
503Service Unavailable – We're temporarily offline for maintenance. Please try again later.

These error codes help you identify and troubleshoot issues when interacting with the BriteAPI. When you receive an error response, refer to the corresponding error code and its meaning to understand the nature of the problem.