Error handling

Chainabuse 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, etc.). Codes in the 5xx range indicate an error with Chainabuse's servers (these are rare).

The Chainabuse API uses the following error codes:

Error codeMeaning
400Bad Request -- Your request is invalid.
401Unauthorized -- Your API key is wrong.
404Not Found -- The specified resource could not be found.
405Method Not Allowed -- You tried to access an object with an invalid method.
406Not Acceptable -- You requested a format that isn't JSON.
429Too Many Requests -- You have exceeded your rate limit. See below for details on handling rate limits.
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.