Skip to content

4.2Status code

Type: status_code. Checks: the HTTP status code of the response. This is a three-digit number, such as 200 (OK) or 503 (service unavailable). If the address redirects, obsrvly follows the redirects first. It then checks the status of the final response.

Operators: eq, neq, gt, lt.

TypeOperatorValueWhat it means
status_codeeq200Only 200 OK is healthy.
status_codelt400Any status below 400 is healthy.
status_codeeq401An endpoint that must refuse requests without a token.

When it fails: assertion status_code == 200: got 503

Last updated