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 code | Meaning |
|---|---|
| 400 | Bad Request -- Your request is invalid. |
| 401 | Unauthorized -- Your API key is wrong. |
| 404 | Not Found -- The specified resource could not be found. |
| 405 | Method Not Allowed -- You tried to access an object with an invalid method. |
| 406 | Not Acceptable -- You requested a format that isn't JSON. |
| 429 | Too Many Requests -- You have exceeded your rate limit. See below for details on handling rate limits. |
| 500 | Internal Server Error -- We had a problem with our server. Try again later. |
| 503 | Service Unavailable -- We're temporarily offline for maintenance. Please try again later. |
Updated about 2 months ago
