I'm having trouble with httpErrors
element in Web.config.
I decided to use httpErrors element to handle http errors and show custom error pages in my (ASP.NET MVC) application. The problem is that I also have an API that I don't want httpErrors element to handle its errors, it has its own custom error responses.
I want it to be disabled when it comes to API.
Is there anything I can do to achieve what I want?