
In plain words
Every response starts with a status code. The first digit tells you the family:
| Family | Meaning | Common examples |
|---|---|---|
| 2xx | Success | 200 OK, 201 Created, 204 No Content |
| 3xx | Go somewhere else | 301 Moved Permanently, 302 Found |
| 4xx | Your request has a problem | 400 Bad Request, 401 Not signed in, 403 Not allowed, 404 Not Found, 422 Invalid data, 429 Too many requests |
| 5xx | The server has a problem | 500 Server Error, 503 Unavailable |
A memory trick
4xx: "you" made a mistake. 5xx: the server made one. When you see a 5xx on your own site, check your server's error log.
See Build a REST API.

Found this useful?
Every lesson stays free. Tap the thumbs up so we know what works, or say thanks with a soda or a coffee: it pays for hosting and new lessons.


