Skip to content

Error Handling

All API endpoints use a consistent error response model.
When a request fails, use the HTTP status code and error message to identify the cause.

Common Status Codes

StatusMeaningTypical Cause
400 Bad RequestInvalid request payloadMissing required fields, invalid format, invalid asset input
401 UnauthorizedAuthentication failedMissing, expired, or invalid Bearer token / API key
403 ForbiddenPermission deniedCredential does not have the required scope
413 Payload Too LargeInput too largeFile or remote asset exceeds configured size limits
422 Unprocessable EntityValidation failedBody/query/path parameters fail schema validation
429 Too Many RequestsRate or quota limit hitRequest frequency or usage exceeded current quota
500 Internal Server ErrorInternal failureUnexpected service-side error
502 Bad GatewayUpstream service errorModel/storage upstream returned invalid response
503 Service UnavailableTemporary unavailableBackend dependency is down or overloaded

Troubleshooting Tips

  • Verify request payload type and required fields first.
  • Confirm Authorization header is valid and not expired.
  • For 429, retry with backoff and review your quota plan.
  • For 5xx, retry later; if persistent, include request details when contacting support.