Subscribe to PHP Freaks RSS

200 OK

syndicated from planet-php.net on July 3, 2018

200 OK is the most common HTTP status code. It generally means that the HTTP request succeeded.



If the HTTP request was a GET request, the response should include the full representation of the resource.



If the response has no body, then the 204 No Content response body should be used instead.



Example:



GET /hello-world.txt HTTP/1.1
Accept: text/*


HTTP/1.1 200 OK
Content-Type: text/markdown
Content-Length: 778 

[200 OK][1] is the most common HTTP status code. It generally means that the HTTP request succeeded.