Back to Path
Beginner · 3 minModule 7 of 18
Status Codes
Status codes are the server's way of telling the client: "Here is how your request went". They are 3-digit numbers grouped into five classes.
Interactive Protocol Simulation
Step 1 / 4
Step 1 of 4
200
OK
304
Not Modified
404
Not Found
500
Server Error
Success! Everything went as expected.
Worked example
Response
HTTP/1.1 404 Not Found
Content-Type: text/plain
Resource not foundA 404 doesn't mean the server is broken; it means the server is working perfectly but you asked for a page that doesn't exist.
The Five Classes
The first digit of the code defines its general category:
- 1xx (Informational) — Request received, continuing process.
- 2xx (Success) — The action was successfully received and accepted (e.g., 200 OK).
- 3xx (Redirection) — Further action must be taken (e.g., 301 Moved Permanently).
- 4xx (Client Error) — The request contains bad syntax or cannot be fulfilled (e.g., 404 Not Found).
- 5xx (Server Error) — The server failed to fulfill a valid request (e.g., 500 Internal Server Error).
Study kit
Module 7 of 18
Beginner · 3 min · 0 of 18 complete
Module status
Not completed yet
Notessaved locally+
Notes stay in this browser. They are not uploaded.
Suggest an editLearning graph
Prerequisites
Discussion
Loading discussion…
Sign in to ask a question.