1
Launch IIS Manager
Launch IIS Manager.
2
Open the Error Pages feature
Select your website in the tree view and double-click the Error Pages icon on the site home page.

3
Edit the feature settings
In the Actions pane, click Edit Feature Settings….
4
Select the error-response option
In the Edit Error Pages Settings dialog box, select Detailed errors for local requests and custom error pages for remote requests.

5
Save the settings
Click OK.
