Re:Browsers barely care what HTTP status code your web pages...
by pseudalopex on Friday August 11, 2023 @07:29AM
(#37087460)
I didn't agree with their conclusion. But the quoted part seemed correct. Some response codes are much more common than others. Redirects are followed by some other code unless the web site is broken in some way. 410 means the web site removed something. Most of the time 404 means the same. Or a link was generated incorrectly.
Re:Browsers barely care what HTTP status code your web pages...
by erikerikson on Friday August 11, 2023 @12:50PM
(#37090837)
OPs assertion checks out. Users won't see a 1X or a 3X. 2Xs are the success case. 4Xs are usually caused by an error in the website that the user didn't define but was served them. The exception is bad data formatting that the UI has probably flagged to them so they never send it to get the 4X. 5Xs are clearly a break in the website.
Re:Browsers barely care what HTTP status code your web pages...
by BrandoElFollito on Saturday August 12, 2023 @03:36AM
(#37097955)
And?
1xx you do not care
2xx you are fine and do not care
3xx you are redirected and do not care
4xx crap, the client is wrong, you cannot do anything because the app is wrong
5xx crap, the server is wrong and you cannot do anything either.
"You hit a problem, it was reported to the devs, sorry. Try later" is the only reasonable message for normal users
That's completely wrong.
1xx codes are all INFORMATIONAL (usually used for switching protocols).
2xx codes are all SUCCESS.
3xx codes are all REDIRECTs.
4xx codes are all CLIENT ERROR.
Only 5xx codes are SERVER ERROR.
See https://datatracker.ietf.org/doc/html/rfc7231#section-6