In my ASP.NET web application, I have defined custom error pages in my web.config file as follows:
If you remove aspxerrorpath=/ and you use response redirect during error handling you'll get exception there will be redirection loop.