200Status code
2xxSuccess
YesCacheable by default
RFC 9110 §15.3.1Defined in
Common causes
- Normal successful GET
- POST that returns the result in the body
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)