4 ms·
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
by Sebb767 3y ago
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.
- brabel 3y ago> 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. See https://datatracker.ietf.org/doc/html/rfc7231#section-6 https://datatracker.ietf.org/doc/html/rfc7231#section-6
- pseudalopex 3y agoI 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.
- erikerikson 3y agoOPs 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.
- BrandoElFollito 3y agoAnd? 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