2xx Success

HTTP 200 OK

The request succeeded. The meaning depends on the method: the resource for GET, the result of the action for POST.

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 OK

When 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.

Related status codes

Other status codes

1xx Informational

2xx Success

3xx Redirection

5xx Server error

Search all HTTP status codes