200 OK
The request succeeded.
Common causes
- A GET request returns data normally
- A form or API POST finished and returns the result in the body
How to fix
- Nothing to fix – this is a success response
- If an API reports an error but still returns 200, switch to a proper 4xx / 5xx code so clients and monitoring can see it
Detailed reference (MDN) ↗RFC 9110 §15.3.1 ↗
Which code should I use?
- 200 / 201 / 204: 200: success with content. 201: a new resource was created (with Location). 204: success with no body (common for DELETE / PUT).
