Error format
All errors follow this structure:Status codes
Common errors and solutions
401 — Invalid API key
- Check that your key starts with
sk-occ- - Ensure the
Authorizationheader format isBearer sk-occ-... - Verify the key hasn’t been revoked in your dashboard
402 — Insufficient balance
429 — Rate limit exceeded
502 — Upstream error
- Check if the model name is correct
- The LLM provider may be experiencing downtime
- For BYOK: verify your upstream API key is valid