I do an ASP .NET Core application, I have a controller that describes all administrative actions, only the admin can do these actions, i.e. i use roles
[Authorize(Roles = "Admin")] If you go to the page by an unauthorized user - I am thrown on the login page, okay.
And if a regular user enters the admin panel and not an admin, then he is thrown onto a page with the URL AccessDenied?ReturnUrl=%2FAdmin%2FIndex contents of which Status Code: 404; Not Found Status Code: 404; Not Found
Is there any way to customize this page?

