# HTTP Status Codes

> How to read the three-digit code on every HTTP response. What 200, 301, 404 and 500 mean, and whose job it is to fix each group.

**Course:** [Computer Networking](https://learn.benibix.com/learn/infrastructure-networking)  
**Time:** 10 min

**After this lesson you can:**

- Read the first digit of a code
- Name the common codes and what they mean
- Say who must fix a 4xx and a 5xx

## What the first digit of the code tells you

Every HTTP response starts with a status code: three digits that say how the request went. The first digit is the one to read first. A 2 means it worked. A 3 means look somewhere else. A 4 means the request was wrong. A 5 means the server broke. The other two digits give the detail.

The 2xx codes are good news. 200 OK means here is what you asked for. 201 Created means a new thing was made, which is the usual answer to a POST. 204 means it worked and there is nothing to send back.

The 3xx codes send you elsewhere. 301 means the page has moved for good, and the new address is in a header. Browsers follow it on their own. 304 means nothing has changed since last time, so use the copy you already have.

The 4xx codes mean the asker must fix something. 404 Not Found is the famous one: no page lives at that address. 401 means you need to log in. 403 Forbidden means you are logged in but not allowed. 429 means you sent too many requests too fast.

The 5xx codes mean the server's owner must fix something. 500 is a crash in the server's own code. 502 and 504 mean a server in front could not get an answer from the one behind it. 503 means the server is too busy or shut for repair.

The code is for programs as much as for people. A search engine drops a page that returns 404 for long. A monitor that checks a site every minute raises an alarm on a run of 5xx codes. So the code has to be right, not just the page.

A common mistake is to show an error page with a code of 200. It looks fine to a person, but every program reads it as success. Search engines then keep a broken page, and monitors never notice the fault. An error page should carry the error's real code.

## The codes you will meet most

| Code | Name | What it means |
| --- | --- | --- |
| 200 | OK | Here is what you asked for |
| 201 | Created | A new thing was made |
| 301 | Moved Permanently | It lives at a new address now |
| 404 | Not Found | Nothing lives at that address |
| 403 | Forbidden | You may not have it |
| 500 | Internal Server Error | The server's code crashed |
| 503 | Service Unavailable | Too busy, or shut for repair |

![Five bands stacked from top to bottom. 1xx: wait, more is coming, rarely seen. 2xx: it worked, such as 200 OK and 201 Created. 3xx: look somewhere else, such as 301 Moved Permanently and 304 Not Modified. 4xx: the request was wrong and the asker must fix it, such as 403 and 404. 5xx: the server broke and its owner must fix it, such as 500, 502 and 503.](https://learn.benibix.com/diagrams/infc-status-codes.svg)

### Example: A blog moves to a new address

Emma moves her blog from /posts/42 to /blog/how-to-bake. Old links all over the web now hit a 404.

She adds a 301 from each old address to its new one. Visitors land on the right post, and search engines move the old page's ranking to the new address.

**Words in this lesson:** [HTTP Status Code](https://learn.benibix.com/term/infrastructure/http-status-code)

**Question:** A site returns a 503 code. Who needs to fix it?

**Answer:** The people who run the server. Any 5xx code means the server side failed. A 503 means it is too busy or shut for repair, which only its owners can change.

---

Source: https://learn.benibix.com/learn/infrastructure-networking/http-status-codes
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
