lookup> HEAD

HEAD

Identical to GET but the server returns only headers, with no response body. Useful for checking existence, size or freshness.

safeidempotentcacheableRFC7231#4.3.2
PropertyValue
Safe (does not modify state)Yes
Idempotent (repeatable)Yes
CacheableYes

Identical to GET but the server returns only headers, with no response body. Useful for checking existence, size or freshness.

curl -I https://api.example.com/users/1
HEAD /api/users/1 HTTP/1.1
Host: example.com
HEADGET
Headers only, no bodyReturns the full body
Same status as GETSame status as HEAD

Is the HEAD method safe?

HEAD is a safe method — it does not change resource state on the server.

What happens if I send HEAD repeatedly?

HEAD is idempotent — repeated requests have the same effect as a single request.

All HTTP methods

Related status codes

Related headers