The 2xx (Successful) class of HTTP status code indicates that the client’s request was successfully received, understood, and accepted.
The HTTP Status 200 OK status code represents that the request has been successfully processed on the server.
Although an origin server may produce a payload body of zero length or an empty payload, a 200 response always contains a payload. If the server does not transmit any payload in response, HTTP status 204 (No Content) should be sent instead. The header and payload of a 200 (OK) response are cacheable by default. If caching is to be disabled, the response must include the cache’s appropriate cache headers.
The response payload depends on the HTTP method which was selected for the request.
HTTP Status 200 – Response Payload
|HTTP Response||Response Payload|
|GET||a representation of the target resource|
|HEAD||the same representation as GET, but without payload|
|POST||a representation of the status of, or results obtained from, the action|
|PUT, DELETE||a representation of the status of the action|
|OPTIONS||a representation of the communications options|
|TRACE||a representation of the request message as received by the end server.|