200 OK

HTTP 200 OK is a 2xx success status. The request succeeded. The body contains the requested resource or the result of the action.

200Status code
2xxSuccess
YesCacheable by default
RFC 9110 §15.3.1Defined in

Common causes

What to do

Nothing to fix. Be careful not to return 200 with an error message in the body: clients and crawlers treat it as success.

Example response

HTTP/1.1 200 OK
Content-Type: application/json

{"ok":true}

Returning 200 in code

Express   res.status(200).json({ … });
Flask     return jsonify(…), 200
PHP       http_response_code(200);
Go        w.WriteHeader(200)

Other 2xx codes

Frequently asked questions

What does HTTP 200 mean?
The request succeeded. The body contains the requested resource or the result of the action.
Is 200 an error?
No. 2xx codes are success responses, not errors.