HTTP 200 OK

The request worked and the response contains the result.

OK

2xx SuccessStandardRFC 9110, section 15.3.1

The request worked and the response contains the result.

Example response
HTTP/1.1 200 OK
Content-Type: application/json
Cache-Control: max-age=60
Date: Sun, 15 Nov 2026 09:30:00 GMT

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

What 200 means

Everything worked. What the body contains depends on the method: for GET it’s the resource you asked for, for POST it’s the result of the action.

When servers send it

For any request that succeeded and has something to send back. It’s by far the most common status code on the web.

Why you might see it

  • A successful request.

Using it as a developer

  • Use more specific codes where they help: 201 when you created something, 204 when there’s nothing to return, 202 when the work is queued.
  • Don’t send 200 with an error in the body ({"error": "not found"}). Clients, caches, monitoring and search engines all trust the status code, so use a 4xx or 5xx.
  • A 200 for a page that says “not found” is called a soft 404, and search engines treat it as a problem.

If you’re visiting a website

  • Nothing. It worked.

Related codes

  • 201 Created: The request worked and created something new, usually found at the URL in the Location header.
  • 204 No Content: The request worked and there is nothing to send back.
  • 304 Not Modified: Your cached copy is still up to date, so use that.
  • 404 Not Found: There’s nothing at this URL, or the server won’t say whether there is.

Where it’s defined

200 OK is defined in RFC 9110, section 15.3.1. It’s a 2xx code, the success class: the request worked.

Other 2xx codes

201 Created · 202 Accepted · 204 No Content · 206 Partial Content

Or search them all in the HTTP status code list.

Questions people ask

What does HTTP 200 OK mean?
The request worked and the response contains the result.
Should an API return 200 with an error message?
No. Use the status code that matches the outcome, such as 400, 404 or 500, and put the details in the body. Many tools, from browsers to monitoring, only look at the status code.
What’s a soft 404?
A page that says something doesn’t exist but returns 200 OK. Search engines may index it as a real page. Return a real 404 or 410 instead.
↑↓ move↵ openesc close