Kolam Ayer MakersLinux Foundations

HTTP Status Codes

Core Idea

HTTP status codes summarize what happened to a request.

Practice Alone

Run a header request and read the first line:

curl -I https://example.org

Read the first digit first:

Common examples:

502 points to a gateway/upstream problem, not automatically to the client or the requested filename. Inspect the actual service configuration and logs before deciding on a repair.

An HTTP error response can still mean curl completed successfully. 000 is curl’s no-response placeholder, not an HTTP status code.

Done When

You can explain whether failure is missing content, server error, or bad proxying.

Docs Pointers