Skip to documentation
deepthroat
DocsHelp
DEEPTHROAT DEVELOPER GUIDE

Errors & troubleshooting

Find the cause of a failed request and the next step to resolve it.

On this pageHTTP status codesConnection checklistRetry behavior

HTTP status codes

StatusMeaningNext step
400Invalid request or parameterCheck the JSON, format, and model capabilities
401Missing or invalid keyCheck the header and key
402Credit or token allowance exhaustedFund the key or start an hourly plan
403Access denied or disabled keyCheck key access
404Unknown model or endpointUse the exact model ID and correct base URL
429Rate limit reachedWait; honor Retry-After when provided
500–503Request or service failureRead the error and retry transient failures with backoff

Connection checklist

  1. 1
    Confirm that the API key is enabled and has credits or an active plan.
  2. 2
    Fetch /v1/models with the same key to check authentication and exact model IDs.
  3. 3
    For Chat Completions and Responses use the /v1 base URL; for Claude Code use the API origin.
  4. 4
    Select your harness’s documented API format. Codex requires Responses with HTTP streaming.
  5. 5
    Inspect the error response and Activity before changing models or retrying.

Retry behavior

Use backoff for transient network errors and rate limits. Fix invalid credentials, insufficient credits, or unavailable models before retrying. Preserve conversation and tool-call IDs when continuing an agent task.

Claude Code: selected model issue
Use an exact Claude model ID from /v1/models, check ANTHROPIC_BASE_URL, and verify the key with the same terminal credentials. A display label such as “Opus” is not the gateway’s model ID.