HTTP 200 OK

The request has succeeded.

2xx Success

200

OK

Description

The 200 OK status code indicates that the request has succeeded. The payload sent in a 200 response depends on the request method. For GET, a representation of the target resource is sent in the response. For HEAD, the same representation as GET but without the body. For POST, a representation of the status of or results obtained from the action. For PUT and DELETE, a representation of the status of the action. For OPTIONS, a representation of the communications options. For TRACE, a representation of the request message as received by the end server. This is the most common HTTP status code and indicates that everything worked as expected.

When Is It Used?

The standard response for successful HTTP requests. A GET request to an API returns 200 with the requested data. A POST request returns 200 with the result of the operation.

Example Response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 27

{"status": "success"}

Look Up Any Status Code

Browse all status codes