Errors
The error envelope, every status code, and what to do about each.
Gateway errors use one envelope:
{
"type": "error",
"request_id": "9e1b…",
"error": {
"type": "rate_limit_exceeded",
"message": "…"
}
}Always log request_id. Support can trace the exact request and its billing
activity from it.
Status codes
| Status | error.type | Meaning | What to do |
|---|---|---|---|
| 400 | invalid_request | Malformed JSON or missing model | Fix the request |
| 401 | authentication_error | Missing or invalid token | Check the bearer token and its prefix (si_ vs sis_) |
| 402 | insufficient_balance | Workspace balance too low | Top up (contact us during the pilot) |
| 402 | spend_cap_exceeded | The API key's spend cap would be exceeded | Raise the cap or use another key |
| 403 | (none) | Your role lacks permission for the operation | Ask a workspace owner or admin |
| 404 | not_found | Model, customer object, or API key not found | Check the model id and endpoint path |
| 409 | conflict | Duplicate registration or key conflict | Use a different name |
| 429 | rate_limit_exceeded | Key RPM or TPM limit would be exceeded | Back off; raise the key's limits if intended |
| 502 | provider_error | The model backend failed to answer | Retry with backoff; failed calls are never billed |
| 500 | pricing_error, ledger_error, report_error | Internal platform issue | Contact support with the request_id |
Billing semantics on failure
A failed model call (provider_error) releases the balance reserve and is
logged as a failed request. It never creates billable usage. Quota failures
(402/429) happen before the model is called, so they cost nothing.