Service Docs

HTTP behavior

Verify the response the client actually receives.

Methods and status codes

SignalHow to interpret it
GET / HEADGET fetches a representation. HEAD returns equivalent metadata without the body.
200 / 204A successful response. A 204 response has no body.
301 / 308A permanent redirect. A 308 preserves the original method and body.
404 / 429The resource is missing, or a rate limit applied. Check Retry-After when present.
502 / 503 / 504Review 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.

RFC 9110 and HTTP semantics