Serverless Errors and Rate Limits
Interpret structured Serverless errors and retry without duplicating work.
Error format
{"error":{"code":"ERROR_CODE","message":"Customer-safe explanation"}}Authentication and method errors
Missing credentials return JSON 401. Unsupported methods return JSON 405. OPTIONS returns a preflight response. Unknown /v1/* routes return JSON 404.
Retry policy
Do not retry invalid input, authentication, permission, or missing-model errors. Retry transient failures only with bounded backoff and the same idempotency key where supported.
Troubleshooting
Record the endpoint, model slug, status code, request identifier, and timestamp. Never record the Authorization header or provider response.
Published · Updated