HTTP status and error.code: the status describes the protocol-level failure, while error.code identifies the platform-side failure reason written by the service.
Error Response Format
Relay APIs usually return an OpenAI-compatible error body:Some non-relay management APIs use a top-level
code, message, data, and dateTime response shape. For model relay, OpenAI-compatible, Claude-compatible, and Gemini-compatible entry points, use the error shape on this page first.HTTP Status Codes
Platform Error Codes
These values come from the project’stypes.ErrorCode definitions and fixed error codes written by the system performance guard.
Request And Parameters
Authentication, Access, And Quota
Model, Channel, And Routing
Upstream Request And Response
Safety
Data And System
Compatible Endpoint error.type
Some compatible endpoints do not return error.code and only mark the error category through error.type. Current video proxy endpoints use:
Retry Guidance
400,401,403,404, and413usually require fixing the request, access, or quota first. Do not blindly retry them.408,429,500,502, and503can be retried with exponential backoff and a maximum retry count.sensitive_words_detected,prompt_blocked, andviolation_fee.grok.csamrequire changing the input. Do not automatically retry the same request.insufficient_user_quotarequires topping up or reducing model cost before sending another request.- If
messageincludes a request ID, include it when reporting the issue so logs can be located quickly.