title: redirect to custom "access denied" page for ASP.NET Core
body: <p>I writing an ASP.NET Core 1.0 website that uses Windows Authentication.  I have implemented Authorization and that is working as expected.  Currently, when Authentication fails for a given user, a generic "HTTP 403" error page is shown.</p>
  
  <p><a href="https://i.stack.imgur.com/OumRt.png" rel="noreferrer"><img src="https://i.stack.imgur.com/OumRt.png" alt="enter image description here"></a></p>
  
  <p>How can I configure ASP.NET Core so that it redirects to my own custom "access denied" page?  </p>
  
  <p>I tried the approach outlined in this article, but it didn't work for me (maybe because I'm using Windows Auth instead of Forms Auth?)
  <a href="https://stackoverflow.com/questions/34598319/how-to-redirect-unauthorized-users-with-asp-net-mvc-6">How to redirect unauthorized users with ASP.NET MVC 6</a></p>
  
  <p>Any help would be appreciated.</p>