- Launch IIS Manager.
- Select your website in the treeview and double-click the Error Pages icon on the site home page.

- In the Actions pane, click Edit Feature Settings….
- In the Edit Error Pages Settings dialog box, select Detailed errors for local requests and custom error pages for remote requests.

- Click OK.
