Dotcom-Monitor allows you to define which HTTP response status codes are considered successful for both monitoring and load testing HTTP requests. This lets you tailor success criteria beyond the default interpretation, helping you get accurate results based on your real-world expectations.
By default, responses in the 200-399 status code range are treated as successful. But sometimes, you need to set up monitoring of specific HTTP(S) codes—like 401 Unauthorized when monitoring a login-required page or expecting to receive specific error codes for certain APIs.
In load tests, for example, you may expect some non-200 responses under high load. Defining which codes are acceptable helps avoid false failures that aren’t relevant to your goals.
How to Configure Expected HTTP Codes
- Open your HTTP(S) target settings.
- Go to the Basic tab and find the Expected response codes field.
- In the Expected response codes field, enter the codes you want to treat as acceptable. You can list multiple individual codes (e.g.
401, 500) or define ranges (e.g.500-599). - Save your configuration. From then on, any response code outside of those ranges will trigger an error in the test results.
