this post was submitted on 10 Apr 2026
157 points (91.1% liked)

Programmer Humor

31403 readers
779 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] wheezy@lemmy.ml 8 points 1 month ago (2 children)

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.

[–] smeg@feddit.uk 1 points 1 month ago

Maybe I meant unauthenticated. What is this, mandatory cybersecurity education!?

[–] bountygiver@lemmy.ml 0 points 1 month ago (1 children)

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

[–] wheezy@lemmy.ml 1 points 1 month ago* (last edited 1 month ago)

Thanks. I think I might have been misreading these in my head. Dyslexia is a dickhead. The number codes really helped.