HTTP Status Codes

20 cards@learner82946550

The most important HTTP response codes and what they mean.

Open in Nooli

Free deck. Start learning right after you install.

Deck code uev8994nyv

Cards

5 of 2020 of 20
1xx / 2xx / 3xx / 4xx / 5xx
1xx — informational 2xx — success 3xx — redirection 4xx — client error 5xx — server error
200
OK — the request succeeded.
201
Created — a new resource was created (often after POST).
204
No Content — success, but no response body (often after DELETE).
301
Moved Permanently — the resource has a new permanent URL.
Show 15 more cards

Or learn them all in the app

302
Found — temporary redirect.
304
Not Modified — use the cached version.
400
Bad Request — the request is malformed or invalid.
401
Unauthorized — authentication is missing or invalid (not logged in).
403
Forbidden — authenticated, but no permission.
401 vs 403
401 — "Who are you?" (not authenticated) 403 — "I know who you are, but you can't do this."
404
Not Found — the resource doesn't exist.
405
Method Not Allowed — e.g. POST to an endpoint that only accepts GET.
409
Conflict — the request conflicts with the current state (e.g. duplicate).
422
Unprocessable Entity — valid syntax, but the data fails validation.
429
Too Many Requests — rate limit exceeded.
500
Internal Server Error — a generic server failure.
502
Bad Gateway — a proxy got an invalid response from the upstream server.
503
Service Unavailable — server is overloaded or down for maintenance.
504
Gateway Timeout — a proxy didn't get a response from upstream in time.