View Complete Thread
  • Custom error page configuration on IIS 8

    Oct 22, 2018 07:53 AM|madhura.torsekar|LINK

    Hi,

    Want to set custom error pages for all error codes in IIS. Have tried to set error code - 403 in IIS 8. But how can I check whether my custom error page has been set for error code - 403? Accordingly, I can set rest of the custom error pages for rest of the error codes. Below one is web.config setting for 403:

    <httpErrors errorMode="Custom" defaultResponseMode="ExecuteURL">
    <remove statusCode="403" subStatusCode="-1" />
    <error statusCode="403" path="~/Error/error_403" responseMode="ExecuteURL" />
    </httpErrors>

    Below are the error codes for which I need to set custom error pages.

    404

    403

    402

    406

    500

    501

    502