I have a permission based site that only allows certain users with roles access to specific pages. If you do not have the role associated to your account then you will get an unauthorised page. My problem is for my website (using mvc 4) that I seem to get a generic 401 page.
I want to change so I can see a custom 401 page using form authentication. I have created a view and set the page in custom errors but it keeps defaulting to the generic 401 page supplied by IIS and not the one specified in the controller / view.