I am using the Authorize attribute like this:
[Authorize (Roles=\"Admin, User\")]
Public ActionResult Index(int id)
{
// blah
}
You could do this in two ways:
Specify the error the HandleError-attribute, and give a view that should be shown:
[HandleError(ExceptionType = typeof(UnAuthorizedException), View = "UnauthorizedError")]
You can specify several different ExceptionTypes and views