Use it when configuring, checking or troubleshooting Response Headers in APIs.
Response Headers
Server and intermediary metadata describing representation type, caching, pagination, throttling, resource location, concurrency and correlation.
1. Response headers carry content type, caching, rate limits, pagination links, request IDs.
2. Honour Retry-After.
3. Log request IDs.
4. Use Link headers for pagination.
5. Check Content-Type before parsing.
response headers → client behaviour
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Operational evidence path Verify boundary
server processing → response metadata → client interpretation → follow-up request/read-back → correlation
Healthy evidence: metadata needed for follow-up, concurrency, throttling and correlation is captured and interpreted with method semantics.
Step 2 Failure modes and next checks Narrow the fault
Suspicious evidence: ignored Location/ETag/Retry-After, lost request IDs, content-type mismatch or metadata used without verifying the resulting resource.
Response headers describe the response and follow-up contract; they do not show payload correctness or target completion.
Step 3 Common mistakes Narrow the fault
- Ignoring
Retry-Afteron 429/503. - Missing pagination links and reading only page 1.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Response header present ≠ body correct; headers and payload are separate evidence.
- Retry-After ≠ request safe to retry; method/idempotency still governs replay risk.
- ETag ≠ universal version number; comparison semantics are resource- and server-specific.
- Location header ≠ resource ready; creation or asynchronous processing may continue.
curl -sS -D - -o /dev/null <url>— response headers- Rate limit headers (X-RateLimit-*, Retry-After) — limits
- Request ID header — support/tracing
ReferenceWhat it is1 section · depth on demand
What it is
Response headers describe the result: Content-Type, Location of a created resource, ETag for versioning, Retry-After and rate-limit headers, pagination Link.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
Response headers carry metadata about an API response: content type, caching rules, rate-limit status, pagination links, request IDs. Automation that ignores them misses information it needs to behave well.
| Header | Use |
|---|---|
Content-Type | How to parse the body (application/json) |
Retry-After | Seconds to wait after 429/503 |
X-RateLimit-Remaining / RateLimit-* | Calls left in the window |
Link | Next/previous page URLs |
ETag | Version for caching or conditional updates |
Location | URL of a newly created resource (201) |
X-Request-ID | Correlate with server logs |
curl -sI -H "Authorization: Bearer $T" https://api.example.com/v1/devices
r = requests.get(url, headers=h, timeout=30)
if r.status_code == 429: time.sleep(int(r.headers.get("Retry-After", 30)))
Example
curl -sS -D - -o /dev/null https://api.example.com/v1/items
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in APIs > Response Headers. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc9110 · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Response Headers API boundary map
Fast request/delivery, trust, processing and verification boundaries for Response Headers.
| Boundary | Healthy evidence | Suspicious evidence |
|---|---|---|
| Caller / request | Environment/version, identity and exact request contract are attributable | Hidden defaults, wrong endpoint/version, leaked or mismatched credentials |
| Server / response | Status, headers, structured body and request ID are interpreted together | Status-only handling, ignored error body, ambiguous async result or unsafe retry |
| State / proof | Write result is reconciled with resource read-back or acceptance test | Response success treated as final target success without verification |
| Troubleshooting | First failed boundary is preserved, changed minimally and retested | Blind retries, credential rotation, replay or payload edits before evidence is captured |