200 OK HTTP Status Code


The HTTP status code 200, also written as "200 OK", is a success code. It indicates that the client's request was processed by the server successfully. The exact meaning of "success" depends on the type of request that was made:

  • GET: The requested resource, like a web page or file, was found and sent back to the client.
  • HEAD: The headers associated with the requested resource were sent back, but the actual content of the resource wasn't included.
  • POST: The data the client sent was successfully received and processed by the server, and a description of the result is included in the response.
  • PUT: Similar to POST, the data was received and processed successfully, and a description of the result is included in the response.
  • TRACE: The server echoes back the exact request it received, which can be useful for debugging purposes.

In general, you won't see HTTP status codes directly when you're browsing the web normally. However, they are important for developers and can sometimes be seen in browser developer tools.


200 OK

Common Causes

There are several scenarios that lead to this response code:

  1. Successful GET Request: When a client requests data from a server (such as a webpage, image, or video) using the GET method, and the server successfully locates and sends the data without any issues.

  2. Successful POST Request: After a client submits data to the server (like form data) using the POST method, and the server successfully processes the submitted data. Although a 200 status code can be returned, other status codes like 201 (Created) might be more specific for some POST requests.

  3. Head Request: In response to a HEAD request, where the client is asking for the headers of a resource (for example, to check if a webpage has been modified without actually downloading the entire content). If the resource is found and accessible, the server responds with a 200 status code, indicating success.

  4. PUT or DELETE Requests: When a client requests to update (PUT) or delete (DELETE) a resource on the server, and the server successfully executes the operation, it can respond with a 200 status code, signifying that the request was successfully completed. However, codes like 204 (No Content) for DELETE or 201 for PUT might also be appropriate depending on the situation and whether new content is created or not.

  5. Successful API Calls: When making API calls, a 200 status code indicates that the server has successfully executed the requested action and is returning any requested data or confirmation of the action's success.

  6. After Authentication: If a resource requires authentication, and the client successfully authenticates, the server will respond with a 200 status code when delivering the requested resource.

In all these scenarios, the essential condition for receiving a 200 status code is that the server successfully processes the client's request as intended. The server then returns the expected data, confirmation, or resource, indicating that everything worked as expected without any errors or issues necessitating a different status code.

Browser Support

The following table will show you the current browser support for the 200 OK HTTP status code.

Edge Chrome Firefox Opera Safari
Tablets / Mobile
Chrome Firefox Opera Safari Samsung Webview

Last updated by CSSPortal on: 31st March 2024