Debug HTTP responses in evidence order

The useful unit is the response as a set: status, headers, representation, and the request context that produced them. Reading only the final HTML can hide the redirect or header that changed the outcome.

Decision rule

Capture the response chain first. Interpret status, headers, and HTML as separate signals before combining them.

01

Record request context

Write down the exact URL, method, timestamp, and relevant request headers. Scheme, host, path, query, cookies, authentication, language, and user agent can change the response.

02

Read the chain before the destination

For each hop, record status and Location exactly as returned. Resolve relative locations against the current URL, note loops, and stop at a defined hop limit.

The final 200 does not erase a problematic chain. A temporary hop, cross-host change, protocol downgrade, or loop belongs in the diagnosis.

03

Keep header and HTML directives separate

A robots meta element lives in HTML. X-Robots-Tag lives in the response headers and can also control non-HTML resources. Record each occurrence and the user agent it targets.

A canonical link is not a redirect and a redirect is not a canonical declaration. They can point to the same destination, conflict, or be absent.

If you only paste the final HTML into an inspector, the original status, Location header, and X-Robots-Tag are unknown. Say so in the result.

04

Translate evidence into the next check

Use the observed response to choose a focused follow-up: inspect the server rule, compare an unauthenticated request, fetch the canonical target, check an alternate host, or verify the rendered document.

Do not rewrite production redirects or indexing controls from one capture when the route varies by region, device, cache, authentication, or deployment.

90

Primary sources

Checked for this page on 22 August 2026. External documentation can change.

  1. 01
    RFC 9110 — HTTP Semantics

    The normative definitions for HTTP methods, status codes, fields, and response semantics.

  2. 02
    Google Search Central — Redirects and Google Search

    Google's current treatment of permanent and temporary redirects in Search.

  3. 03
    Google Search Central — Robots meta and X-Robots-Tag

    Current page-level indexing and serving controls supported by Google Search.