status Registered
Verified 2026-09-18 · registry updated
2025-09-15HTTP 200 OK
The request succeeded and the response contains the requested result.
Use 200 when a request completed successfully and the response has a useful representation to return.
httpstatus codesuccess
Response (http)
HTTP/1.1 200 OK
Content-Type: application/json
{"ok":true}200 OK is the general-purpose success response. It is commonly used for successful reads and for mutations that return a response body.
For a successful creation, prefer 201 Created. For a successful request with no response body, 204 No Content communicates intent more clearly.
Common mistakes
- Returning 200 for an error because the response contains an error message.
- Using 200 for a successful creation when 201 would describe the result better.
Registry reference: RFC9110, Section 15.3.1
Sources