Skip to content

200 OK (HTTP Status Code 200)

Updated: at 09:12 AM

HTTP status code 200 “OK” is a success status code indicating that the server has successfully processed the client’s request and returned the expected response. This is one of the most common HTTP status codes, usually meaning everything is normal and the request has been fulfilled.

The meaning of the 200 OK status code may vary depending on the request method:

For example, when a client requests a webpage using the GET method, if the webpage exists on the server and the request is accepted, the server will return status code 200, along with the content of the webpage in the response body.

HTTP status code 200 is typically sent along with response headers and the response body. The response headers contain metadata about the response, such as Content-Type and Content-Length, while the response body contains the actual data, such as an HTML document, an image, or JSON data.

Here is a simple example of an HTTP response that includes status code 200 OK:

HTTP/1.1 200 OK
Content-Type: text/html
Content-Length: 12345
Last-Modified: Wed, 21 Oct 2015 14:48:00 GMT
<html>
<head>
<title>Example Web Page</title>
</head>
<body>
<p>This is an example web page.</p>
</body>
</html>

In this example, the status code 200 indicates that the request was successful, the response headers provide additional information about the response, and the response body contains the content of the HTML document.