Add the below section in web.config:-
<system.web>
<customErrors mode="On" defaultRedirect="Error501.aspx">
<error redirect="Error404.aspx" statusCode="404" />
<error redirect="Error501.aspx" statusCode="400" />
<error redirect="Error402.aspx" statusCode="402" />
<error redirect="Error501.aspx" statusCode="500" />
<error redirect="Error501.aspx" statusCode="501" />
</customErrors>
</system.web>
No comments:
Post a Comment