Back to all status codesRead more on MDN
200
OK
Success
RFC 7231
The request has succeeded.
Detailed Information
The 200 OK status code indicates that the request has succeeded. The meaning of the success depends on the HTTP method: GET (resource found and transmitted), POST (resource created/updated), PUT/PATCH (resource updated), DELETE (resource deleted).
Common Examples
- •Successful GET request to fetch user profile
- •Successful API call returning data
- •Webpage loading correctly
Common Uses
- •API responses with requested data
- •Successful webpage loads
- •Successful form submissions
Best Practices
- •Include appropriate response body with useful data
- •Set correct Content-Type header
- •Use appropriate caching headers
Additional Resources
Similar Status Codes
201
Created
The request has been fulfilled and resulted in a new resource being created.
202
Accepted
The request has been accepted for processing, but the processing has not been completed.
203
Non-Authoritative Information
The server is a transforming proxy (e.g. a Web accelerator) that received a 200 OK response to satisfy a previous request.