Error Handling
Error Handling
All errors follow a consistent format.
Error Response Format
{
"error": {
"code": "VALIDATION_ERROR",
"message": "The domain field is required.",
"details": {
"domain": ["The domain field is required."]
}
}
}
HTTP Status Codes
| Code | Description |
|---|---|
| 200 | Success |
| 201 | Created |
| 400 | Bad Request |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Not Found |
| 422 | Validation Error |
| 429 | Rate Limited |
| 500 | Server Error |
Error Codes
VALIDATION_ERROR- Invalid inputNOT_FOUND- Resource not foundUNAUTHORIZED- Invalid tokenRATE_LIMITED- Too many requests