Status code matches

Matches when the HTTP response status code matches provided codes or classes.

This condition inspects the HTTP status code returned in the response to determine if it matches a specified value or category. It returns true if the status code matches the codes or shorthand classes defined in the configuration.

Configuration

  • Enter status code(s): The values used to evaluate the response status code. This field supports specific codes, shorthand classes, and comma-separated lists.
    • Specific codes: Enter the exact three-digit number (e.g., 200).
    • Code classes: Use shorthand notation to match an entire range of codes (e.g., 2xx matches any 200-level success code).
    • Multiple entries: Separate multiple values with a comma (e.g., 200,404,5xx).

Measurement

The condition extracts the numerical HTTP status code from the response and converts it into a string representation (e.g., 200 becomes "200"). It then evaluates this string against a regular expression pattern generated from your input. The condition returns true only if the status code string matches the pattern.

If the response context is unavailable or missing during evaluation, the condition returns false.


Last modified February 26, 2026