Skip to content

2xx Success

200 OK

The request succeeded.

What 200 means

The standard success response. For GET it carries the resource, for POST the result of the action.

Common causes

  • Everything worked.

How to fix it

If you're calling an API

  • Nothing to fix, but check the body: some APIs return 200 with an error inside (e.g. {"ok": false}).

If you run the server

  • Use more specific codes where they fit: 201 for created resources, 204 for empty responses.

Should you retry?

No need.

Example response

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

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

Defined in: RFC 9110 (HTTP Semantics). 200 is a success.

HTTP 200 FAQ

What does HTTP 200 mean?

200 OK: The request succeeded. The standard success response. For GET it carries the resource, for POST the result of the action.

Is 200 a client or server error?

Neither: 200 is a success response (2xx). The request was received, understood and accepted.

How do I fix a 200 error?

Nothing to fix, but check the body: some APIs return 200 with an error inside (e.g. {"ok": false}).

Should I retry after a 200?

No need.

Other 2xx status codes

All HTTP status codes