Why is returning 404 (should be 401) when unauthorized with cookie auth in ASP.NET Core 8 Web API?
When the user is not authorized and he tries to make a request, the status code should be 401, but it’s 404.
When the user is not authorized and he tries to make a request, the status code should be 401, but it’s 404.