Glossary

Status code

A three-digit number in every response that says how the request went.

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.

Buy me a sodaBuy me a coffee

Want more on this?

Tell us which part was not clear, ask for a follow-up lesson, or request a lesson on any topic. We read every request.

I would like
Only to tell you when it is ready.

WhatsApp

Join the channelChat with us

Free lessons and updates in the channel. Questions about learning or training? Chat with us.