Errors
Understand the error formats and HTTP status codes returned by the API.
HTTP Status Codes
hexCore uses conventional HTTP response codes to indicate the success or failure of an API request. 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, a charge failed, etc.). Codes in the 5xx range indicate an error with hexCore's servers.
| Code | Meaning |
|---|---|
400 | Bad Request - Often missing a required parameter. |
401 | Unauthorized - No valid API key provided. |
404 | Not Found - The requested resource doesn't exist. |
429 | Too Many Requests - Rate limit exceeded. |
500 | Server Error - Something went wrong on our end. |
Error Response Format
JSON (400 Bad Request)
{
"status": false,
"error_code": "validation_error",
"message": "The destination_account field is required."
}