Error Handling
The API returns standard HTTP status codes to indicate success or failure of requests.Error Response Format
Common Error Codes
| Status | Error Type | Description |
|---|---|---|
| 400 | Bad Request | Invalid request parameters |
| 401 | Unauthorized | Missing or invalid authentication |
| 403 | Forbidden | Insufficient permissions |
| 404 | Not Found | Resource does not exist |
| 422 | Validation Error | Request validation failed |
| 429 | Rate Limited | Too many requests |
| 500 | Server Error | Internal server error |
SDK Error Handling
Retry Strategy
For transient errors (429, 5xx), we recommend implementing exponential backoff:- Wait 1 second, then retry
- If still failing, wait 2 seconds, then retry
- If still failing, wait 4 seconds, then retry
- Maximum of 3 retries
The SDKs implement automatic retry with exponential backoff for transient errors.