HTTP 200 OK
HTTP 200 OK means the request succeeded. For a GET the body contains the requested resource; for a POST it contains the result of the action.
Quick answer
HTTP 200 OK means the request succeeded. For a GET the body contains the requested resource; for a POST it contains the result of the action. It is the normal status for every working web page, and the only status that lets Google index a page’s content.
Last updated · Maintained by FreeAIToolz · How we test
What does HTTP 200 OK mean?
200 is the default success response. What the body contains depends on the method: the resource for GET, nothing for HEAD (headers only), or a description of the outcome for POST, PUT and DELETE. A page that shows an error message but returns 200 is called a soft 404, which confuses both clients and search engines.
| Status code | 200 |
|---|---|
| Name | OK |
| Class | 2xx Success |
| Defined in | RFC 9110 §15.3.1 |
| Cacheable by default | Yes (heuristically cacheable) |
| Safe to retry automatically? | Not applicable |
What causes HTTP 200?
- The request was valid and the server handled it.
How do I fix HTTP 200?
- Make sure error pages (not found, out of stock, empty search) do not return 200. Return 404 or 410 so they are not indexed as thin pages.
- For created resources prefer 201; for empty successful responses prefer 204.
What should a client do after HTTP 200?
Use the response. No retry needed.
Does HTTP 200 affect SEO?
Required for indexing. Google indexes 200 pages (subject to quality). Error-looking pages that return 200 are reported as “Soft 404” in Search Console.
Example 200 response
HTTP/1.1 200 OK
Date: Mon, 01 Dec 2026 12:00:00 GMT
Content-Type: application/json
{"error":{"status":200,"message":"OK"}} How to return 200 OK in code
Express (Node.js)
res.status(200).json({ error: 'OK' }); Next.js route handler
return Response.json({ error: 'OK' }, { status: 200 }); FastAPI (Python)
return Response(status_code=200) PHP
http_response_code(200); Nginx
location = /example {
return 200;
} Other 2xx status codes
The request was received, understood and accepted.
Frequently asked questions
What is a soft 404?
Should an API return 200 with an error in the JSON?
Is 200 a client or server error?
Related
- 201 Created HTTP 201 Created means the request succeeded and a new resource was created as a result.
- 204 No Content HTTP 204 No Content means the request succeeded but there is no response body to send.
- 304 Not Modified HTTP 304 Not Modified means the client’s cached copy is still valid, so the server sends no body.
- 404 Not Found HTTP 404 Not Found means the server cannot find anything at the requested URL.
- Open the HTTP Status Codes Reference → Free, no signup.