< HTTP />
fr

200 OK

2xx Successful RFC 9110
Everything went fine. Here's what you asked for.

What 200 OK means {#what}

The request succeeded. The most common response in HTTP. What “success” means depends on the method: for GET it means the resource is in the body, for POST it means the action was performed, for DELETE… well, you’ll want 204 for that.

When you’ll see a 200 {#when}

  • Any successful GET request
  • A POST that returns data about what was created
  • Any operation that has something meaningful to return

When to use 200 {#use}

  • Default success response when you have a body to return
  • Avoid using 200 with an error field in the body — use the right error code instead