Understanding API error responses and status codes
Status Code | Description | When It Occurs |
---|---|---|
400 | Bad Request | Invalid request parameters or validation errors |
401 | Unauthorized | Missing or invalid API key/authentication |
403 | Forbidden | Valid authentication but insufficient permissions |
404 | Not Found | Resource not found |
413 | Payload Too Large | File upload exceeds size limit |
429 | Too Many Requests | Rate limit exceeded |
500 | Internal Server Error | Unexpected server error |
resetTime
or implement exponential backoffX-RateLimit-*
headers to proactively avoid rate limits rather than handling them reactively.