h5bp / server-configs-iis

IIS Web.Config Boilerplates
MIT License
336 stars 85 forks source link

Change existingResponse from PassThrough to Auto #31

Open rexcfnghk opened 8 years ago

rexcfnghk commented 8 years ago

In ASP.NET MVC, PassThrough will serve a blank page when we serve a >4XX response (e.g. using return new HttpStatusCode(HttpStatusCode.Forbidden)) even when a route is set for 403 errors. By reverting to Auto, the view will be correctly rendered.