• 0 Posts
  • 50 Comments
Joined 2 years ago
cake
Cake day: August 4th, 2023

help-circle








  • The better analogy is that people live in houses and houses have addresses, and I can use an address to find someone’s house.

    Whether the pointed data by the pointer is valid or not is… not the point. In all languages I can think of, dereferencing an invalid pointer like a pointer to the wrong address per the type and alignment is never valid. Your analogy does not improve on historical analogies and it is wrong.









  • deur@feddit.nltoProgrammer Humor@programming.devYes, But...
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    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”