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.
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.
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.
With Retry-After (5 seconds by default). Non-browser clients get {"error":"overloaded"}
429
Too many concurrent requests from one IP
When RSTWAF_OVERLOAD_MAX_INFLIGHT_PER_IP is set, with Retry-After
429
Rate limit, adaptive CC
With Retry-After. Rate limit rules can use 403 instead
403 or 429
Challenge
Browsers 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
200 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/livez
200 whenever the process is alive; not for load balancer health checks