Skip to main content

Error format

All errors follow this structure:

Status codes

Common errors and solutions

401 — Invalid API key

Solutions:
  • Check that your key starts with sk-occ-
  • Ensure the Authorization header format is Bearer sk-occ-...
  • Verify the key hasn’t been revoked in your dashboard

402 — Insufficient balance

Solution: Add funds in the dashboard.

429 — Rate limit exceeded

Solution: Wait and retry with exponential backoff. Default limit is 60 requests/minute per key.

502 — Upstream error

Solutions:
  • Check if the model name is correct
  • The LLM provider may be experiencing downtime
  • For BYOK: verify your upstream API key is valid