A status code alert rule fires when the check receives an HTTP status code that matches (or doesn't match) your condition. This is the most direct way to detect when an endpoint is down.
After every check, PulseAPI records the HTTP status code returned by the endpoint. The rule evaluates whether that code meets your condition.
The most common configuration — alert any time the endpoint doesn't return a success code:
200Change 200 to match the expected status code configured on your monitor (e.g., 201, 204).
PulseAPI evaluates exact codes, not ranges. To catch any 5xx error, you may create multiple rules or use a webhook to handle filtering on your end.
For the most critical server errors, start with:
500 (Internal Server Error) — is equal to503 (Service Unavailable) — is equal to404 — useful if a specific resource going 404 is a known failure modeThese are two different settings:
Most of the time, align these: if your monitor's expected code is 200, your rule condition is typically "is not equal to 200."
Still have questions? Contact support.