Custom 401 error pages in MVC alongside Windows Authentication
We use windows authentication for a lot of our web apps, but also want to serve up a custom 401 error page when users are not authorized to log in. This is tricky because this specific 401 error is handled directly by IIS, rather than the application itself, because it's a windows directory permission. I spent [...]