If you're getting a status code like 404 or 500, it means there's no problem between you and the web server. The status codes come from the server. The exception is when you get a gateway/reverse proxy error. Usually 503 I think. That means the web server is down, but there's another server in front of it reporting that it's down.
True, I thought of those as they're just more informative about why you're not getting what you're looking for.
Most of the time a lot of software kinda doesn't care about what's happening just if it can do what it's told.
For Websites you often get more informative errors like 404, 500 or something else.