Skip to main content
Troubleshooting

Error codes

Console and open API error codes, licence import errors, the status codes and JSON responses the data plane returns to clients in each protection scenario, and exit codes of the install and upgrade scripts.

Console and open API

Error responses look like {"error": "<message in Chinese>"}. 403 responses related to permissions and licensing also carry a code field, which API callers should check.

Access and sessions

codeHTTPMeaningWhat to do
forbidden403The current role may not perform this actionAn administrator adjusts permissions under Role management
ip_not_allowed403This IP may not access the consoleChange the console IP allow list; see Accounts and permissions
session_required403This endpoint does not accept API tokens and needs a console sessionUse the console, for example to upgrade software or approve configuration publishing
password_change_required403The password must be changed firstSign in to the console and change it
totp_enrollment_required403A one-time code must be enrolled firstEnrol under Account and security
token_invalid401The API token is invalid or expiredIssue a new token
lockout409The console IP allow list being saved excludes your IPConfirm and save anyway, or add your IP to the list
builtin_role403Built-in roles cannot be changedCreate a new role
escalation_denied403You cannot grant permissions you do not holdAsk an administrator who holds them

Sign-in responses without a code:

HTTPMeaning
401Wrong user name or password; a one-time code is needed (the response includes "totp_required": true); not signed in or session expired
423Account locked
429Too many failed sign-ins from this IP; try again in 15 minutes
403Cross-site request rejected, or CSRF check failed

Licence

codeHTTPMeaning
license_restricted403The licence is restricted and configuration changes are paused
license_feature403The licence does not include this feature
license_limit403The licensed site limit has been reached

When importing a licence file fails, the response is 400 with one of these codes:

codeMeaning
formatThe licence file is malformed or damaged
signatureThe licence file's signature is invalid
schemaThe licence file is incomplete
kindNot a licence file
productThe licence file is for another product
bindingThe licence file is bound to another host
offline_only, not_offlineThe licence type does not match the import method: an offline licence file, or not an offline licence file
expiredThe licence has expired
revokedThe licence has been revoked
issued_futureThe licence was issued later than this host's clock; check the system time
clock_rollbackThe system clock was set back; correct the time
no_keysNo licence public key is built in; contact support
invalidAny other error

Configuration publishing

With publishing mode on, these 409 errors can occur: draft_stale, draft_scope, draft_conflict, draft_pending, request_pending, schema_changed and draft_uses_version. They mean the draft is out of date, conflicts with the current configuration or another request is pending. Refresh the draft or resolve the conflict as the page suggests. self_approval (403) means submitters cannot approve their own requests, and not_requester (403) means only the submitter can withdraw a request.

Third-party sign-in and AI triage

codeHTTPMeaning
sso_expired401The Feishu sign-in has expired; scan again
key_required400The LLM connection address changed, so the API key must be entered again
not_enabled409The LLM connection is not enabled
budget_exhausted429Today's AI triage budget is used up

Data plane responses

Block pages show an event ID that you can look up in Investigate. Non-browser clients receive JSON:

{"error": "blocked", "scenario": "waf", "status": 403, "title": "…", "message": "…", "event_id": "…", "time": "…"}

Blocking scenarios

scenarioScenarioDefault status
wafAttack blocked403
rate_limitRate limit429
ip_denyIP block list403
geoGeo block403
banBan403
aclAccess rule block403
challenge_failedChallenge failed403
replayReplayed request403
waitroomWaiting room200 or 503

Status codes can be changed under Block pages; see Business security.

Other responses

StatusScenarioNotes
503Node overloadedWith Retry-After (5 seconds by default). Non-browser clients get {"error":"overloaded"}
429Too many concurrent requests from one IPWhen RSTWAF_OVERLOAD_MAX_INFLIGHT_PER_IP is set, with Retry-After
429Rate limit, adaptive CCWith Retry-After. Rate limit rules can use 403 instead
403 or 429ChallengeBrowsers get the challenge page; 429 when triggered by a rate limit or adaptive CC. Non-browser clients get {"error":"challenge_required"} with the challenge URL
429 or 403Account protection, broken authorisation detectionWith Retry-After
503Waiting roomJSON {"error":"waiting_room"}
403, 429WebSocket403 when the handshake's Origin or subprotocol is rejected, 429 when the connection limit is exceeded
400Parameter count over the limit
413Request body over the inspection limit
502, 504Identity gateway502 when the gateway cannot be reached, 504 when it does not respond within 15 seconds

Health checks

PathResponse
/.rstwaf/healthz200 when healthy. 503 with {"status":"overloaded"} when overloaded, or 503 with {"status":"draining"} and the header X-RSTWAF-Draining: 1 while draining before an upgrade
/.rstwaf/livez200 whenever the process is alive; not for load balancer health checks

Install and upgrade scripts

ScriptExit codes
install.sh, uninstall.sh, host-protect.sh, cp-backup.sh, cp-witness.sh0 success, 1 failure, 2 usage error
upgrade.sh0 upgraded, 1 failed (nothing changed, or rolled back to the old version), 2 usage error, 3 rollback failed

When upgrade.sh exits with 3, the output names the backup directory. Keep that directory and contact support.

On this page