Error format
All errors follow this structure:Status codes
| Code | Type | Description |
|---|---|---|
401 | auth_error | Invalid or missing API key |
402 | billing_error | Insufficient balance |
429 | rate_limit_error | Too many requests |
502 | upstream_error | LLM provider returned an error |
500 | internal_error | Server error |
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