The request succeeded and the response body contains the result.
200 OK is the default success status. What the body means depends on the method: for GET it is the resource, for POST the result of the action, for HEAD the same headers without a body. 200 is heuristically cacheable, so without Cache-Control a browser or CDN may reuse the response for a while based on Last-Modified.
| Header | Role |
|---|---|
Content-Type | Media type of the body. |
Cache-Control | How long and where the response may be cached. |
ETag | Version validator used for later 304 responses. |
HTTP/1.1 200 OK
Content-Type: text/html; charset=utf-8
Content-Length: 1256
Cache-Control: max-age=300
ETag: "5f2a-1a"