Guides

Errors

Understand common HTTP errors, gateway errors, and retry behavior.

Error shape

Most errors return JSON with an `error` object:

{
  "error": {
    "message": "Invalid API key",
    "type": "invalid_request_error",
    "code": "unauthorized"
  }
}

Common errors

HTTPMeaningTypical causeSuggested action
400Bad requestInvalid JSON, parameter range, unsupported field.Validate request schema.
401UnauthorizedMissing, revoked, or malformed API key.Create or rotate a key in `/app/keys`.
403ForbiddenAccount, key, model, or workspace is not allowed.Check model access and workspace policy.
404Not foundWrong endpoint path or model ID.Confirm the base URL includes `/v1`.
408TimeoutUpstream or network took too long.Retry with backoff or reduce payload size.
409ConflictDuplicate operation or state conflict.Refresh state and retry safely.
422Validation failedRequired field missing or invalid.Fix request body.
429Rate limitedRPM, TPM, quota, or balance issue.Back off and review `/app/usage`.
500Internal errorGateway or provider error.Retry if safe; record request ID.
502/503/504Upstream unavailableProvider outage, route failure, timeout.Retry with backoff or choose another model.

Retry policy

Use exponential backoff with jitter for `408`, `429`, `500`, `502`, `503`, and `504`. Do not blindly retry non-idempotent tool calls or actions that may have side effects.

Balance and quota

If the account has no balance or quota, requests may fail with `429` or a billing-specific error. Check `/app/credits`, `/app/subscription`, and `/app/usage`.

Debug checklist

  1. Confirm the API key is active.
  2. Confirm the base URL is correct.
  3. Confirm the model ID exists on `/models`.
  4. Check `/status` for incidents.
  5. Open `/app/logs` and inspect status, route, latency, and error message.
Errors · uouo cloud