Skip to content
Home

Error Handling

SeaCloud LLM may return simple errors or OpenAI-style error objects. Clients should handle errors using both HTTP status codes and error codes.

{
"error": "missing authentication token"
}
{
"error": {
"message": "Request rejected by quota policy.",
"type": "rate_limit_error",
"param": null,
"code": "quota_exceeded"
}
}
Status codeCommon reasonHandling suggestion
401Missing authentication tokenCheck Authorization or x-api-key
403API Key is invalid or expired, balance is insufficient, or the model is not authorizedDo not retry indefinitely. Resolve account or permission issues first
404Unsupported path or incorrect public entryConfirm that the public path includes /llm
429Quota or rate limitRetry with Retry-After or exponential backoff
502/503/504Service temporarily unavailable or request timeoutRecord X-Request-Id and contact the platform for troubleshooting
  • Record HTTP status code, response body, and X-Request-Id.
  • Use limited backoff retries only for 429 and some 5xx responses.
  • For authentication, balance, model permission, and path errors, fix the configuration before retrying.
  • If a streaming request disconnects midway, do not assume the request will not generate usage or billing.