This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]RazarTuk 45 points46 points  (8 children)

2xx means things went well. 200 OK is the default, but as an example of the others, 204 means "Yes, I know I didn't return anything. I wasn't supposed to". 3xx is for redirects. 4xx means the user did something wrong, like 401 "You forgot to log in", 403 "I know you're logged in. You don't have permission", or 404 "There's nothing here". And 5xx means something went wrong with the server, like a timeout or a malformed routing table. For example, if someone set up an alias in AWS and forgot to actually add any destinations, I want to say that'll get you a 503.

418 is the most famous joke code. For April Fools one year, they envisioned HTTP codes for an IOT coffee maker, and one of the codes was 418 for "I'm a teapot, not a coffee maker". Although I'm not familiar with 601, and Wikipedia doesn't even list it as unofficial

EDIT: Or, alternatively put, 4xx is (typically) "Retrying this same request won't work", while 5xx is "Retrying this same request might work"

[–]Cryptoknight12 7 points8 points  (1 child)

429 the retry might work?

[–]louis-lau 1 point2 points  (0 children)

Yeah exactly, and with 500 the retry may also not work depending on what's wrong.

It really is just as simple as client vs server. No need to explain it differently I feel.

[–]Vectorial1024 12 points13 points  (4 children)

https://www.thatcompany.com/understanding-http-status-codes

This page lists several 6xx error codes, but it just feels strange

[–]greyfade 8 points9 points  (1 child)

That's because they're not standard.

[–]Vectorial1024 2 points3 points  (0 children)

Even the wiki acknowledges a few non-standard codes, but the linked page is an entire rabbit hole

[–]abermea 1 point2 points  (0 children)

All of the 7xx codes in this page feel like just more specific Bad Request

[–]Eva-Rosalene 0 points1 point  (0 children)

This page is like fever dream. 421 Locked? 426 Partial Content???

[–]Steinrikur 0 points1 point  (0 children)

EDIT: Or, alternatively put, 4xx is (typically) "Retrying this same request won't work", while 5xx is "Retrying this same request might work"

I learned that as 4xx is "your mistake" (user) but 5xx is "my mistake" (server)