this post was submitted on 14 Sep 2025
820 points (99.4% liked)
Programmer Humor
26372 readers
1156 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
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
That's certainly an unusual take. If you are a backend to HTTP and something throws a completely bogus URL out of left field at you, that's not by any means a backend error.
I guess your take is that it might be some sort of usability issue or such because if 95% of clients try to hit the same non-existant URL, that probably means there's some reasonable expectation that you should do something about the URL. However that's relatively more rare a sort of 'invalid URL' scenario. The vast vast majority are some sort of scanners trying bogus crap, followed by an impossibly diverse set of typos and peculiar one-off assumptions that you can't possibly reasonably cover.
If it's not a backend error, you shouldn't be throwing a 5xx error code. Since you are throwing a 500, you have a server bug; even if that bug is simply "sends incorrect error code"
Ok, got you, thought you were saying a bad url from client was inherently a backend mistake.