 <p>You can achieve this by configuring your web.config file. Please check the link below to an article, which explains at the bottom of the page, how to display different custom error pages for different HTTP error statuses.</p> <ul> <li><a href="http://www.asp.net/web-forms/tutorials/deployment/displaying-a-custom-error-page-cs">Displaying a Custom Error Page</a></li> </ul>