HTTP 200 — OK

Standard response for successful HTTP requests

When to use it

Use status 200 when this is the correct HTTP response semantic: Standard response for successful HTTP requests

Request and response example

GET /users/42 HTTP/1.1
Host: api.example.com
Accept: application/json

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

{"id":42,"name":"Ada"}

Related status codes

201, 202, 203, 204

References

MDN · RFC 9110