Every time a browser asks a server for something, the answer starts with a three-digit status code. The first digit tells you the class of a response:
First digit | Class | In short |
|---|---|---|
1 | Information | Keep going |
2 | Success | It worked |
3 | Redirect | Look elsewhere |
4 | Client error | The request has a problem |
5 | Server error | The server has a problem |
See the guide to HTTP for the details. This exercise takes about 20 minutes and has three tasks.
Worked example
You click a link to https://northwind.example/catalogue-2025 and see the 2026 catalogue instead. What happened? The server answered 301 Moved Permanently with a location header pointing to the new page, and the browser followed it. Two requests, two answers, and you only saw the second.
Extension for fast finishers
Use the HTTP Header Analyzer and find three different status codes on real websites, for example by asking for a page that exists, a page that does not exist and an address that needs a sign-in. Note each address, its code and what it means. Remember that the analyzer follows redirects, so it shows the final answer.
Teacher notes
How to run it (20 minutes). 3 minutes: draw the five classes on the board and ask learners which codes they have already seen. 2 minutes: read the worked example. 12 minutes: the three tasks, alone or in pairs. 3 minutes: discuss 401 and 403, which most learners mix up.
Typical mistakes.
Reading 401 "Unauthorized" as "not allowed". It means "not signed in". 403 is "not allowed".
Putting 304 under errors. It is a redirect-class code, and it is good news: nothing needs to be sent again.
Thinking 404 means the site is down. The server answered, so it is working.
Mixing up 500 and 503: 500 is "something broke", 503 is "not available right now".
Follow-up questions.
Why do search engines care whether a moved page answers 301 or 302?
Why would a server send 429 instead of simply getting slower?
What should a well-made 404 page offer a visitor?
Differentiation.
Easier: keep the table of classes visible and do the categorize task together first.
Harder: learners find out what 307 and 308 add compared with 302 and 301 (they keep the method, so a POST stays a POST) and explain when that matters.
