754
Yes, But... (lemmy.ml)
submitted 3 months ago by [email protected] to c/[email protected]
you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 1 points 3 months ago* (last edited 3 months ago)

No.

404 is for "I can not confirm this resource exists"

For example, a private github repo must return 404 for unauthorized users, API requests must act as if that repository doesn't exist (including returning 404 status codes).

403 is for "I can confirm this resource exists, you cannot access it"

this post was submitted on 22 Mar 2025
754 points (98.8% liked)

Programmer Humor

24425 readers
204 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