Skip to main content
Troubleshooting

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

CodeHTTPMeaningFix
license_required403Not licensed, or the licence is no longer validActivate on the License page
invalid_api_key401API key missing or invalidCheck the header and the key
key_disabled401The key is disabledEnable the key
key_expired401The key has expiredChange the expiry date
ip_not_allowed403Source IP is not on the key's allowlistAdjust the allowlist; behind a proxy, set RST_FABRIC_TRUSTED_PROXIES
model_not_found404No model or alias with that nameUse a public name or alias; see GET /v1/models
model_not_allowed403The key may not call this modelAdd it to the key's allowed models

Quotas and rate limits

CodeHTTPMeaningFix
rate_limit_rpm429Key requests-per-minute limit exceededRetry later, or raise RPM
rate_limit_tpm429Key tokens-per-minute limit exceededRetry later, or raise TPM
rate_limit_concurrency429Key concurrency limit exceededRetry later, or raise max concurrency
budget_exceeded429Key or project daily or monthly budget used upWait for the reset, or adjust the budget
insufficient_quota429Key lifetime token quota used upRaise the quota
insufficient_balance402Prepaid project balance too low, or held by requests in progressTop up
model_busy429Model 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

CodeHTTPMeaningFix
invalid_json400Request body is not a JSON objectFix the body
body_too_large413Request body larger than 32 MBSend a smaller request
unsupported_parameter400Unsupported parameter, such as previous_response_id on the Responses endpointSee the API reference
unsupported_endpoint400The model's upstream type does not serve this endpointUse a model that does
max_tokens_cap_exceeded400With n, best_of or several prompts, the outputs exceed the key's per-request capAsk for fewer outputs or raise the cap
content_blocked400Request contains blocked keywordsChange the content, or have an administrator adjust the keywords
pii_blocked400Request contains personal information (mobile numbers, ID numbers and so on)Remove it, or switch masking to mask and continue

Upstream and server

CodeHTTPMeaningFix
upstream_unavailable502No inference node availableCheck the vLLM processes, the network and upstream status on the Models page
upstream_errorUpstream status or 502The upstream returned a non-JSON error page, or its response could not be readCheck the gateway and upstream logs
client_closed499The client disconnected while queuedNothing to do
internal500Internal gateway errorCheck 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.

CodeHTTPMeaning
unauthenticated401Not signed in, or the session has expired
invalid_credentials401Wrong username or password
account_disabled401The account is disabled
too_many_attempts429Too many failed sign-ins; locked for 15 minutes
invalid_code401, 400Wrong two-factor code
mfa_expired401Two-factor verification timed out; sign in again
password_change_required403The initial password must be changed first
mfa_setup_required403The administrator must set up two-factor authentication first
forbidden403The current role lacks permission
admin_only403Only administrators can do this, for example loosening key limits
license_required403Creating keys or models without a licence
weak_password400Password shorter than 8 characters
wrong_password400Current password is wrong
external_account400Non-local accounts cannot change or reset passwords
last_admin409The action would leave no usable administrator
self400You cannot do this to your own account
username_taken409A non-directory account with that name already exists
ldap_not_allowed403The LDAP user is not in an allowed group
not_provisioned403Automatic provisioning is off, so new accounts cannot sign in
ldap_unavailable503The directory is unavailable
sso_discovery_failed400The OIDC identity provider cannot be reached
secret_required400The service address changed; enter the password or secret again
project_not_empty409The project still has keys and cannot be deleted
default_project409The default project cannot be deleted
not_prepaid409The project is not prepaid and cannot be topped up
not_creator403Only the key's creator and administrators can view or regenerate it
not_revealable409The key was not stored at creation and cannot be viewed
reveal_disabled409An administrator has turned off viewing keys again
undecryptable409The encryption key changed or differs from the gateway that created the key
vault_unavailable503The key encryption key is unavailable
reauth_required403Single sign-on accounts must sign in again and view the key within 10 minutes
session_required403Keys can be viewed only from a signed-in console session, not with an API token
node_not_ready400The node does not have remote management on, or the image is not allowlisted
node_has_deployments409The node still has deployments and cannot be deleted
port_in_use409Another deployment on the node uses that port
update_check_disabled409RST_FABRIC_UPDATE_URL is empty, so online update checks are off
rate_limited429Too frequent, for example checking for updates twice within 30 seconds
updater_unavailable409The upgrade helper is not installed or not running
upgrade_unavailable409One-click upgrades are not set up for this deployment
upgrade_running409An upgrade is already in progress
no_online_update409No newer version to upgrade to online; check for updates first
update_changed409A newer version is on the release site; read its release notes, then upgrade
not_newer409You can only upgrade to a newer version
not_direct409This version cannot upgrade directly to that one; upgrade to an intermediate version first
wrong_arch400The package architecture does not match this host
bad_signature, signature_invalid400The signature file is invalid or does not verify
body_too_large413Request body too large

On this page