Hacker News new | past | comments | ask | show | jobs | submit login

2xx - All good

3xx - Somethings could be better

4xx - You did something wrong

5xx - Server did something wrong

Judging by this quick cheat-sheet I just created, this was not your fault :)






1xx - Rare novelty response code.

1xx is the response code you try to ignore because it's really annoying to deal with properly (like when you receive a 100 response to a file upload, or even worse, a 101 with a protocol that isn't exactly what you expected, or a 103 which means more content comes later).

1xx response codes are crucial for things like WebSockets and HTTP/3 but they make the HTTP state machine more complex and many people writing manual HTTP requests are ill-prepared to deal with them.


418 I'm a teapot seemed pretty novel the first few times.

I prefer I'm a coffeepot, but for some reason, there was a 404.

Coffee not found. Sorry, I already drank it.

1xx - this is the websocket connection if you want to watch what it's doing



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: