LOG IN SIGN UP
Documentation

http_status_matches()

Determines whether or not an HTTP status code matches a pattern. The arguments are an integer (usually beresp.status or resp.status) and a comma-separated list of status codes, optionally prefixed by a ! to negate the match. It returns TRUE or FALSE.

Format

BOOL
http_status_matches(INTEGER status, STRING fmt)

Examples

if (http_status_matches(beresp.status, "!200,304")) {
  restart;
}