DELAPARRA
Index
Color
NL
Category: HTTP status codes

200 OK

Explained by Updated

What is 200 OK?

200 OK: The request succeeded. The server returned the requested data. 200 OK is the most common HTTP status code. It means the request worked and the response contains what was asked for, such as a web page, an image or JSON from an API. It is also the most misused code. Some APIs return 200 with a body that says "error": true. That forces every client to read the body before it knows whether the call failed, and monitoring tools that count status codes see no errors at all.

Definition source Coders Lingo, CC BY 4.0

Frequently asked questions about 200 OK

What should you keep in mind with 200 OK?

Use 200 for real success, and the matching 4xx or 5xx code when something went wrong. For other kinds of success there are more specific codes: 201 when something new was created, 204 when there is nothing to return. Clients, browsers and caching proxies all make better decisions when the status code tells the truth.

At a glance

CategoryHTTP status codes
Explained by
Updated

More HTTP status codes terms

All terms starting with a number or symbol

Skills

Download all skills (zip)

Manuals

Related services

Need any help?

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.