ASP MVC 5 - 403 customError not working
问题 I am trying to create custom error pages for my application and it's working for the most part, but not for 403 errors. My Web.config: <customErrors mode="On" defaultRedirect="~/Error"> <error statusCode="404" redirect="~/Error/NotFound" /> <error statusCode="500" redirect="~Error/InternalServer" /> <error statusCode="403" redirect="~Error/Forbidden" /> </customErrors> I have an ErrorController that is delegating these requests. When the 404 hits, it displays the custom error page, but 403