What it means
The standard success response. What the body contains depends on the method: the resource for GET, the result of the action for POST, just headers for HEAD.
Why you're seeing it
- A normal, successful request.
- An API that returns
200with an error inside the JSON body. This is an anti-pattern that hides failures from clients and monitoring.
How to fix it
- Nothing to fix. If the request created something,
201 Createdis more precise. - If there's no body to send, use
204 No Content.
Example response
HTTP/1.1 200 OK Content-Type: application/json Cache-Control: max-age=60 {"id": 42, "name": "teapot"}