2026-04-10 15:36 UTC
Wouldn't unauthorized only be meant for AFTER a login is successful?
Like, the user should have to have an active session first. Maybe you're just talking about that case though.
Replies (2)
-
@smeg@feddit.uk 2026-04-10 16:10
Maybe I meant unauthenticated. What is this, mandatory cybersecurity education!?
-
@bountygiver@lemmy.ml 2026-04-12 01:56
unauthorized (403) is still valid for unlogged in as you can permit anonymous access to certain resources. unauthenticated (401) is for when you should be redirecting the user to the login page