Error Rules
These rules mask application exceptions and errors with custom pages
Overview
Error Rules is a feature of Haltdos WAF that allows application owners to show custom pages without revealing internal exceptions generated by the application upon failure. The custom pages can be created for specific HTTP error codes respectively and thus be used with the error rules.
How to Use:
-
Follow the links: WAF > Zones > Listeners > Rules > Error Rules.
-
Click on Add Rule and set relevant parameters described in the table below.
-
Click on Save Changes.
PARAMETERS | ACCEPTED VALUES | DEFAULT |
---|---|---|
HTTP Response Code | 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 428, 429, 431, 440, 444, 449, 450, 451, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 520, 521, 522, 523, 524, 525, 526, 527, 530 | None |
Error Handling | ENABLED/DISABLED | ENABLED |
Custom Error Page | Select from Custom Pages added | None |
Description
HTTP Response Codes
HTTP error codes for which the custom error page needs to be shown. These are the response codes that the backend sends in returns.
Error Handling
If this field is enabled, then the custom error page will be displayed. If it is disabled, then the default server error page will be displayed.
Custom Error Page
Select the desired custom error page which will be displayed when the specified error occurs. Or click the Add button which redirects to the custom pages screen to create a custom page and add HTML content and then select it from the dropdown list.
Note: We can globally disable error handling from WAF in the operational settings under advanced settings that we will learn later in Operational Settings.