HTTP behavior
Verify the response the client actually receives.
Methods and status codes
| Signal | How to interpret it |
|---|---|
| GET / HEAD | GET fetches a representation. HEAD returns equivalent metadata without the body. |
| 200 / 204 | A successful response. A 204 response has no body. |
| 301 / 308 | A permanent redirect. A 308 preserves the original method and body. |
| 404 / 429 | The resource is missing, or a rate limit applied. Check Retry-After when present. |
| 502 / 503 / 504 | Review upstream errors, availability, and timeout settings using the same time window. |
Test the status and headers
curl -fsS -D - -o /dev/null https://service.example/
curl -sS -o /dev/null -w '%{http_code}\n' https://service.example/missing
Use the same method as the failing client during diagnosis. Some applications route HEAD differently from GET.
Cache validation
Use Cache-Control to describe freshness. ETag and Last-Modified allow a client to validate a cached response with If-None-Match or If-Modified-Since. An unchanged representation can return 304. Use a versioned URL for long-lived static assets and test Vary headers when the response depends on Accept-Encoding or another request header.