Error codes
Error codes returned by the gateway endpoints, grouped by authentication, permissions, quotas and rate limits, request content and upstreams, with HTTP status, meaning and fix; plus common console error codes.
Error format
The OpenAI-compatible endpoints return:
{"error": {"message": "...", "type": "...", "code": "<code>"}}/v1/messages returns the Anthropic format, with the code at the start of message:
{"type": "error", "error": {"type": "...", "message": "<code>: <message>"}}Branch on the code, not on the message text. Every response carries X-Request-Id, which matches an entry in the request logs. 429 responses carry Retry-After: 1.
Gateway endpoints
Authentication and licensing
| Code | HTTP | Meaning | Fix |
|---|---|---|---|
license_required | 403 | Not licensed, or the licence is no longer valid | Activate on the License page |
invalid_api_key | 401 | API key missing or invalid | Check the header and the key |
key_disabled | 401 | The key is disabled | Enable the key |
key_expired | 401 | The key has expired | Change the expiry date |
ip_not_allowed | 403 | Source IP is not on the key's allowlist | Adjust the allowlist; behind a proxy, set RST_FABRIC_TRUSTED_PROXIES |
model_not_found | 404 | No model or alias with that name | Use a public name or alias; see GET /v1/models |
model_not_allowed | 403 | The key may not call this model | Add it to the key's allowed models |
Quotas and rate limits
| Code | HTTP | Meaning | Fix |
|---|---|---|---|
rate_limit_rpm | 429 | Key requests-per-minute limit exceeded | Retry later, or raise RPM |
rate_limit_tpm | 429 | Key tokens-per-minute limit exceeded | Retry later, or raise TPM |
rate_limit_concurrency | 429 | Key concurrency limit exceeded | Retry later, or raise max concurrency |
budget_exceeded | 429 | Key or project daily or monthly budget used up | Wait for the reset, or adjust the budget |
insufficient_quota | 429 | Key lifetime token quota used up | Raise the quota |
insufficient_balance | 402 | Prepaid project balance too low, or held by requests in progress | Top up |
model_busy | 429 | Model at capacity and the queue timed out (30 seconds by default) | Raise the model concurrency limit, add inference nodes or configure fallback models |
Request content
| Code | HTTP | Meaning | Fix |
|---|---|---|---|
invalid_json | 400 | Request body is not a JSON object | Fix the body |
body_too_large | 413 | Request body larger than 32 MB | Send a smaller request |
unsupported_parameter | 400 | Unsupported parameter, such as previous_response_id on the Responses endpoint | See the API reference |
unsupported_endpoint | 400 | The model's upstream type does not serve this endpoint | Use a model that does |
max_tokens_cap_exceeded | 400 | With n, best_of or several prompts, the outputs exceed the key's per-request cap | Ask for fewer outputs or raise the cap |
content_blocked | 400 | Request contains blocked keywords | Change the content, or have an administrator adjust the keywords |
pii_blocked | 400 | Request contains personal information (mobile numbers, ID numbers and so on) | Remove it, or switch masking to mask and continue |
Upstream and server
| Code | HTTP | Meaning | Fix |
|---|---|---|---|
upstream_unavailable | 502 | No inference node available | Check the vLLM processes, the network and upstream status on the Models page |
upstream_error | Upstream status or 502 | The upstream returned a non-JSON error page, or its response could not be read | Check the gateway and upstream logs |
client_closed | 499 | The client disconnected while queued | Nothing to do |
internal | 500 | Internal gateway error | Check the gateway log and contact technical support |
When an upstream returns a JSON error, the gateway passes it to the caller unchanged.
Console
The console's /api endpoints return {"error": {"code": "...", "message": "..."}}. message is in Chinese by default, and in English when the request carries the cookie rst_locale=en or Accept-Language: en; code does not change.
| Code | HTTP | Meaning |
|---|---|---|
unauthenticated | 401 | Not signed in, or the session has expired |
invalid_credentials | 401 | Wrong username or password |
account_disabled | 401 | The account is disabled |
too_many_attempts | 429 | Too many failed sign-ins; locked for 15 minutes |
invalid_code | 401, 400 | Wrong two-factor code |
mfa_expired | 401 | Two-factor verification timed out; sign in again |
password_change_required | 403 | The initial password must be changed first |
mfa_setup_required | 403 | The administrator must set up two-factor authentication first |
forbidden | 403 | The current role lacks permission |
admin_only | 403 | Only administrators can do this, for example loosening key limits |
license_required | 403 | Creating keys or models without a licence |
weak_password | 400 | Password shorter than 8 characters |
wrong_password | 400 | Current password is wrong |
external_account | 400 | Non-local accounts cannot change or reset passwords |
last_admin | 409 | The action would leave no usable administrator |
self | 400 | You cannot do this to your own account |
username_taken | 409 | A non-directory account with that name already exists |
ldap_not_allowed | 403 | The LDAP user is not in an allowed group |
not_provisioned | 403 | Automatic provisioning is off, so new accounts cannot sign in |
ldap_unavailable | 503 | The directory is unavailable |
sso_discovery_failed | 400 | The OIDC identity provider cannot be reached |
secret_required | 400 | The service address changed; enter the password or secret again |
project_not_empty | 409 | The project still has keys and cannot be deleted |
default_project | 409 | The default project cannot be deleted |
not_prepaid | 409 | The project is not prepaid and cannot be topped up |
not_creator | 403 | Only the key's creator and administrators can view or regenerate it |
not_revealable | 409 | The key was not stored at creation and cannot be viewed |
reveal_disabled | 409 | An administrator has turned off viewing keys again |
undecryptable | 409 | The encryption key changed or differs from the gateway that created the key |
vault_unavailable | 503 | The key encryption key is unavailable |
reauth_required | 403 | Single sign-on accounts must sign in again and view the key within 10 minutes |
session_required | 403 | Keys can be viewed only from a signed-in console session, not with an API token |
node_not_ready | 400 | The node does not have remote management on, or the image is not allowlisted |
node_has_deployments | 409 | The node still has deployments and cannot be deleted |
port_in_use | 409 | Another deployment on the node uses that port |
update_check_disabled | 409 | RST_FABRIC_UPDATE_URL is empty, so online update checks are off |
rate_limited | 429 | Too frequent, for example checking for updates twice within 30 seconds |
updater_unavailable | 409 | The upgrade helper is not installed or not running |
upgrade_unavailable | 409 | One-click upgrades are not set up for this deployment |
upgrade_running | 409 | An upgrade is already in progress |
no_online_update | 409 | No newer version to upgrade to online; check for updates first |
update_changed | 409 | A newer version is on the release site; read its release notes, then upgrade |
not_newer | 409 | You can only upgrade to a newer version |
not_direct | 409 | This version cannot upgrade directly to that one; upgrade to an intermediate version first |
wrong_arch | 400 | The package architecture does not match this host |
bad_signature, signature_invalid | 400 | The signature file is invalid or does not verify |
body_too_large | 413 | Request body too large |