Custom error pages are a good way of adding the final professional touches to a site. In IIS this is (unlike customisation in most Microsoft products!) a straightforward task.
Open IIS Manager.
From here, you’ll need to decide at what level you want to apply custom error pages. To apply pages to all sites, set error pages at the IIS level, otherwise, select a specific site. If you plan to run only one site you can choose either option.
Under IIS select Error Pages
Select the status code you want to edit, right click and select edit
Choose from a local file or URL to direct to when this error occurs. Close the IIS manager and you’re done! No restart or refresh required.