Glossary

HTTP status code

The three-digit number a server sends with every response, saying whether the request worked.

In plain English The three-digit number a website sends back with every page, saying how it went: 200 means fine, 404 means not found, 500 means the site itself broke.

An HTTP status code is the three-digit number a server sends at the start of every response, saying how the request went. Browsers usually hide it when things work, but it decides what happens next: show the page, follow a redirect, or show an error.

The five classes

ClassMeaningCommon examples
1xxInformationalRarely seen
2xxSuccess200 OK
3xxRedirect301 Moved Permanently, 302 Found, 304 Not Modified
4xxProblem with the request403, 404, 429
5xxProblem on the server500, 502, 503, 504

The first digit tells you where to look: a 4xx usually means the address, permissions or the visitor; a 5xx means the server or the code behind it.

See the code

curl -I https://example.com/

The first line of the reply shows it, such as HTTP/2 200. In a browser, the developer tools’ Network tab shows the status of every file a page loads.

Search engines rely on status codes. A moved page should return 301 so rankings pass to the new address. A missing page should return a real 404, not a “not found” message with 200. Planned downtime should return 503, which tells crawlers to come back later instead of dropping the page.

Official documentation: developer.mozilla.org