Skip to content

200 OK

Meaning

Standard response for successful HTTP requests; the meaning varies with the request method.

When to Use

For successful GET, POST, PUT, etc., when the request has been processed and the result is included in the response.

Example

GET /api/items returns 200 OK along with the list of items in the response body.

When Not to Use

Do not use for errors, redirects, or when a more specific success code (201, 204, etc.) is applicable.

Source

RFC 9110


Released under the MIT License.