Error Format
All API errors follow a simple format:HTTP Status Codes
400 Bad Request
Indicates that the request was malformed or invalid.Invalid Parameters
Invalid Parameters
Invalid Schema
Invalid Schema
Invalid HTML
Invalid HTML
401 Unauthorized
Authentication-related errors.Invalid API Key
Invalid API Key
Insufficient Credits
Insufficient Credits
429 Too Many Requests
Rate limiting errors.Rate Limit Exceeded
Rate Limit Exceeded
500 Server Error
Internal server errors.Processing Error
Processing Error
Service Unavailable
Service Unavailable
Error Handling Best Practices
Retry Strategy
Our SDKs implement automatic retries for certain errors. For direct API usage, implement your own retry logic.
-
Retryable Errors
- Rate limit exceeded (429)
- Service unavailable (500, 503)
- Network timeouts
-
Non-Retryable Errors
- Invalid parameters (400)
- Authentication errors (401)
- Invalid schemas (400)