Re:Browsers barely care what HTTP status code your web pages...
by Sebb767 on Friday August 11, 2023 @06:11AM
(#37086978)
I don't see how this is related to an error code. Most of the time, if you get a non-200, the website is broken in some way and it's not your problem to fix. If it is (because you develop an extension, for example), it's easy enough to open dev tools. But for the most part, status codes aren't relevant even for power users, as you have no idea whether the page handles the error or is silently failing.
[ Parent
| on HN ]
Re:Browsers barely care what HTTP status code your web pages...
by brabel on Friday August 11, 2023 @06:27AM
(#37087077)
> Most of the time, if you get a non-200, the website is broken in some way
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.
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