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"}Related Status Codes
201
Created
The request has been fulfilled and a new resource has been created.
204
No Content
The server has fulfilled the request but there is no content to send in the response body.
304
Not Modified
The resource has not been modified since the last request.
400
Bad Request
The server cannot process the request due to a client error.
404
Not Found
The server cannot find the requested resource.