HTTP status codes for troubleshooting
A page answers with 404, 502 or an endless chain of redirects. A status code means a web server did reply, so the question has moved from “is the network reachable” to “what did the server say”. DNS can resolve and TCP and TLS can connect while HTTP still returns a redirect or an error. Status code, Location, hostname, path and URL scheme each describe a different part of the exchange.
What the first digit tells you
The class gives the context. 2xx reports successful handling. 3xx redirects the client or controls a related flow. 4xx describes a condition of the client, the request or access. 5xx reports a failure on the server side.
Four codes that are not the same outage
404, 429, 502 and 503 have different operational meanings and should not be lumped together as downtime. 404 means the server works but has nothing at that URL. 429 means you sent too many requests and were rate-limited. 502 comes from a gateway or proxy that received an invalid response from the server behind it. 503 means the service is temporarily unable to handle the request.
Following a redirect chain to its end
Check DNS first, then TLS, then the HTTP response, without letting your tool hide the redirects. A redirect names its target in the Location header. Compare the hostname you requested with the URL you finally reached, including the scheme and the path.
Which server actually sent the code
A 4xx generally concerns the request or access, and a 5xx concerns server-side handling. A reverse proxy or CDN may be another participant in the path, though, and the code can come from it and not from the application. For a view of the site from outside, use the 2ip site information check.