Skip to answer
Monitoring

How do I accept a specific HTTP status code?

Use explicit codes or ranges for APIs and protected endpoints.

A blank Expected status codes field accepts any 2xx response. Enter comma-separated codes or ranges to define another valid result, such as 200-299,401.

A status outside the expected set fails the check. A 401 response only counts as success when you intentionally include it; consider whether that actually proves the endpoint is healthy.

What to do

  1. Edit the monitor and open Advanced settings.
  2. Find Request and response and enter the expected statuses.
  3. Save, then inspect the next check result.
Step-by-step documentationHTTP and API checksChoose the method, expected status codes, keywords, and request headers. Back to all questions