Re:Browsers barely care what HTTP status code your web pages...
by david422 on Friday August 11, 2023 @01:05PM
(#37091012)
That's what he just said though. User breaks the server is a 500. Server prevents the user from breaking the server is a 400.
Re:Browsers barely care what HTTP status code your web pages...
by jeroenhd on Friday August 11, 2023 @02:09PM
(#37091880)
But a 500 isn't the user breaking the server, it's the server being broken before the user ever came in.
Users and client software cannot (or rather, should never) be held responsible for 500 error codes, which "user breaks the server" implies.
A good web server validates the user input, throws a 4xx error if the input is bad for the current state, and if something still goes wrong (which is a server bug) the 5xx range becomes appropriate.