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

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.

