Dotcom-Monitor allows users to customize their website monitoring by specifying expected HTTP response codes. This ensures that the system correctly interprets responses based on your unique needs, rather than just treating all non-200 responses as failures.
By default, Dotcom-Monitor expects HTTP responses with status codes within the 200-399 range to confirm that a webpage is functioning properly and a monitoring request succeeded. However, in some cases, other status codes might also indicate an expected outcome. If an HTTP response contains an expected status code provided by a user, Dotcom-Monitor will consider the request successful, even if the code is not in the default 200-399 success range.
How to Set Up Monitoring for Specific HTTP Codes
- Open your HTTP(S) monitoring target settings.
- Under the Basic tab, in the Expected response codes field, enter the status codes you want the system to recognize as successful responses.
Dotcom-Monitor allows you to enter multiple HTTP response codes or define a range of acceptable codes.
Examples:
- To allow multiple expected responses, such as 401 Unauthorized and 500 Internal Server Error, enter:
401, 500 - To allow all 5xx server error responses, enter:
500-599