Custom Errors in ASP.NET[
^]
Custom Errors Mode in Web.config allows you to manage custom error page to be shown.
There are three modes in general:
Another attribut that is used is "defaultRedirect", this is an optional attribute that is used to redirect the browser to the default error page if any, else generic errors are shown to
users.
<customerrors mode="" defaultredirect="Error/Index">
</customerrors>
Another method is:
<customerrors mode="" defaultredirect="">
<error statuscode="400" redirect="NotFound.htm" />
<error statuscode="500" redirect="InternalServerError.htm" />
</customerrors>
Please go through this article and then you can redirect the user to a default Not Found page designed by you.
Thanks
:)