Skip to content

Response Fields

FieldKeyTypeExample
Origin Response Statushttp.response.statusinteger401
Origin Response Headerhttp.response.headername=valueX-Error=rate-limited
IF http.response.status == 401
THEN failban

This rule increments the failban counter for the IP on every request the origin returns 401 for. Once the configured threshold is reached, the IP is automatically banned.