Command-line tools are best for checking the status of a live HTTP response, while an online reference is best for explaining a registered code, its class, and its specification.

In a shell, curl can observe what a server returns, and a text filter can search a downloaded IANA registry file. The HTTP Status Codes browser reference does something different: it searches a standards-backed snapshot of named registry entries and explains their registration state. These are complementary checks, not interchangeable names for the same operation.

http status codes command line vs online
HTTP Status Codes: Command Line vs Online Lookups

Command line or online: what each method answers

A live request tells you what one server returned during one exchange. A registry lookup tells you what a registered number means and whether its registration is current, temporary, deprecated, unused, or obsolete. Confusing those questions can produce a false diagnosis: a 404 response may be deliberate, while the registry entry for 404 does not prove that a particular request produced it.

Task Command-line approach Online HTTP Status Codes approach
Observe a live endpoint Use curl to send a request and print its returned status code or headers. Does not contact a URL or inspect a server; it searches an embedded reference table.
Explain a number Filter the IANA registry CSV or a local copy with grep or another text tool. Return the phrase, concise meaning, registration state, and RFC reference.
Narrow the results Write a prefix match, exact-value match, or text filter. Combine a code, phrase, concept, protocol term, or RFC reference with the class selector.
Assess freshness A freshly fetched registry file reflects the source at retrieval time. Uses a 64-entry IANA snapshot captured on July 17, 2026.
Protect the lookup text Requests go to the target server and, when applicable, the registry host. Filtering happens in the browser, and search text is never uploaded to Lizely or another service.

Keep the scope of each result visible. A server can return a vendor-specific code that is absent from the IANA registry, and a registered number can still be marked unused or obsolete. A successful lookup in one system does not expand the other system's coverage.

Inspect a live response from the command line

Use the shell when the goal is to observe a particular request. The following workflow separates the status code from the response body and then from registry definitions.

  1. Set the endpoint in $TARGET_URL and request it. Run curl -sS -o /dev/null -w '%{http_code}\n' "$TARGET_URL". Curl makes a GET request, discards the response body, and prints the numeric HTTP status code. The -sS options suppress normal progress output while keeping errors visible.
  2. Repeat the request when headers matter. Run curl -sS -D - -o /dev/null "$TARGET_URL" to retain the status line and response headers while discarding the body. A Location header can identify a redirect, Retry-After can accompany rate limiting, and a response may contain a request identifier. Curl does not follow redirects unless instructed, so add --location only when following them is part of the test.
  3. Search the registry for an exact code from the shell. A live lookup can use the official IANA HTTP Status Code Registry CSV: run curl -fsSL 'https://www.iana.org/assignments/http-status-codes/http-status-codes-1.csv' | grep -E '^404,'. For an already downloaded copy, the same grep -E '^404,' http-status-codes-1.csv pattern searches the local file without another download.
  4. Use a prefix only when you want a whole registered class. For example, grep -E '^4[0-9][0-9],' http-status-codes-1.csv lists named 4xx rows in the CSV. It does not invent entries for unassigned numbers, and a live registry can differ from a dated local snapshot.

The curl result describes that response exchange; it does not explain why the server produced the result. Conversely, a registry row explains the protocol designation but cannot confirm that the server actually returned it. Keep these two facts separate in scripts, logs, and incident notes.

Look up a registered code in the browser

The browser workflow is designed for explanation and filtering rather than live inspection.

  1. Enter the identifier or term you need. Open HTTP Status Codes and enter an exact three-digit code, a class such as 4xx, a reason phrase, a protocol term such as WebDAV, or an RFC reference. Exact numeric matching is strict: searching 404 returns 404 rather than descriptions containing similar digits.
  2. Add a response-class filter when useful. Choose Informational, Successful, Redirection, Client error, or Server error. The selector combines with the text query. Searching for gateway with Server error narrows the result to matching server failures, while Not Found with Server error produces an empty result instead of leaving unrelated rows visible.
  3. Read all four pieces of each matching row. Review the registered phrase, concise practical meaning, registration-state label, and RFC reference. The concise meaning is a standards-aligned paraphrase, not a replacement for the governing specification.
  4. Open the cited specification for implementation-sensitive details. Exact behavior can depend on the request method, headers, cache state, authentication context, intermediaries, or an extension such as WebDAV. Follow the linked specification when caching, security, interoperability, or automated retry behavior matters.

The dataset contains 64 individually named entries captured from the IANA registry on July 17, 2026. Text search checks the phrase, class, concise meaning, RFC reference, and registration state, and no matching set is silently truncated. The page neither contacts a URL nor diagnoses a live server. For source-level verification, consult the IANA HTTP Status Code Registry CSV; MDN's HTTP status code reference provides an independent implementation-oriented cross-check.

Read response classes without collapsing their meanings

The first digit provides a broad category, but codes inside the same category can communicate different conditions and lead to different remedies.

Class Range General interpretation
1xx 100–199 Informational: interim progress.
2xx 200–299 Successful response.
3xx 300–399 Redirection response.
4xx 400–499 Client error: a condition attributed to the client request.
5xx 500–599 Server error: a server-side failure or inability to fulfill a valid request.

For example, 404 Not Found and 429 Too Many Requests are both client-error responses, but one usually concerns the requested resource and the other concerns request frequency. Method and context also matter within the successful range: 200 OK has method-dependent meaning, 204 No Content prohibits response content, 304 Not Modified participates in conditional caching, and 401 Unauthorized concerns missing or invalid authentication credentials despite its historical reason phrase.

Use the code to choose the next diagnostic check

Status codes communicate protocol outcomes, not proven underlying causes. Use the class and registered meaning to select evidence that can narrow the incident.

  • For 401, inspect the authentication chain and verify whether credentials were supplied, accepted, and associated with the intended resource.
  • For 404, confirm the requested path and resource state. A service can also conceal a forbidden resource behind 404, so permissions and authentication context may still be relevant.
  • For 429, review the service's rate policy and any Retry-After header. Retry timing is service-specific rather than fixed by the number alone.
  • For 500, expect a deliberately generic server-side outcome. The application logs are needed to identify the failed operation.
  • For 502, investigate possible upstream crashes, network-path failures, proxy timeout policies, or malformed upstream output. The response alone cannot distinguish them.

A reliable investigation combines both lookup methods: use curl to capture the actual status and relevant headers, use the browser reference to confirm the registered meaning and state, and then consult server logs, request identifiers, and service documentation. Record the endpoint, request method, observation time, status code, and supporting headers so each conclusion can be tied to a particular exchange.

Keep registry limits and live-response limits separate

The browser reference intentionally lists named IANA registry entries rather than every three-digit value a server might emit. It excludes unassigned ranges and vendor-specific extensions. A syntactically valid number can therefore have no registered row: for example, 105 falls within an unassigned range, so an exact search returns no match.

  • 104 is Temporary, not permanent. Its Upload Resumption Supported registration is tied to an active Internet-Draft, so it may expire or change.
  • 305 is deprecated, 306 and 418 are unused, and 510 is obsolete. Their explicit registry rows remain visible with warnings rather than being presented as ordinary current choices.
  • 418 is not currently described as “I'm a teapot” in this table. The snapshot preserves the registry and RFC designation of unused instead of repeating a popular but outdated phrase.

These limits explain why a registry lookup and a live response can both be correct without matching one another. The command line observes one operational exchange; the online table explains the standards-backed snapshot. Neither proves the cause of a failure, and the snapshot date is material when evaluating a newly assigned, expired, or changed temporary code.

For a deeper look, see JavaScript Playground: Command Line vs Online.

For a deeper look, see Linux Commands Cheat Sheet: Bulk File Review.