What 200 means
The standard success response. For GET it carries the resource, for POST the result of the action.
Common causes
- Everything worked.
How to fix it
If you're calling an API
- Nothing to fix, but check the body: some APIs return 200 with an error inside (e.g. {"ok": false}).
If you run the server
- Use more specific codes where they fit: 201 for created resources, 204 for empty responses.
Should you retry?
No need.
Example response
HTTP/1.1 200 OK
Content-Type: application/json
{"id": 42, "name": "Example"}Defined in: RFC 9110 (HTTP Semantics). 200 is a success.