How status codes are grouped
The first digit says what kind of answer it is: 1xx informational, 2xx success, 3xx redirection, 4xx client error and 5xx server error. Clients that do not know a specific code treat it like the x00 of its class, so an unknown 4xx behaves like a 400.
For monitoring, the line that matters most is between 4xx and 5xx. A 4xx usually means the request was wrong (a bad link, a missing login) and the server is healthy; a 5xx means the server failed and someone should look. A sudden rise in 404s after a deploy, though, often means broken links or routes.
The errors that page on-call engineers
- 500 Internal Server Error: an unhandled exception. The stack trace is in the logs.
- 502 Bad Gateway: the proxy got no valid answer from the app: it crashed, restarted or closed the connection.
- 503 Service Unavailable: overloaded, in maintenance or no healthy backends.
- 504 Gateway Timeout: the app answered too slowly for the proxy.
- 429 Too Many Requests: a rate limit was hit, yours or an upstream API's.
The HTTP status codes guide explains how monitoring should treat each class.
Check a URL now
To see the status code a URL returns, and every redirect on the way, use the website down checker or the redirect checker. To be alerted when a page starts returning 5xx, set up uptime monitoring with a check on the status code and on the page content.