I have error page settings in my web.config like:
<customErrors mode="RemoteOnly" defaultRedirect="ErrorDocs/500.htm">
<error statusCode="404" redirect="ErrorDocs/404.htm"/>
<error statusCode="403" redirect="ErrorDocs/403.htm"/>
</customErrors>
Is there a simple way to redirect to 404 page without typing its name? Ex: Response.Redirect(404 status coded page); Or is there a way to get default 404 location?