200 OK means the request succeeded. What the body holds depends on the method: the resource for GET, a description of the result for POST, and nothing for HEAD.
HTTP/1.1 200 OKWhen servers send it
- A successful GET that returns the requested resource.
- A POST, PUT or PATCH whose result is described in the body.
How to handle it
- Read the body according to its Content-Type.
- For a new resource, 201 Created is more precise; for no body at all, 204 No Content.