Client Request Successful (200 Range)
The most common response for a successful HTTP transaction is 200 (OK), indicating that the client’s request was successful, and the server’s response contains the request data. If the request was a GET method, the requested information is returned in the response data section. The HEAD method is honored by returning header information about the URL. The POST method is honored by executing the POST data handler and returning a resulting entity-body.
The following is a complete list of successful response codes:
|
Code |
Meaning |
|
200 OK |
The client’s request was successful, and the server’s response contains the requested data. |
|
201 Created |
This status code is used whenever a new URL is created. With this
result code, the |
|
202 Accepted |
The request was accepted but not immediately acted upon. More information about the transaction may be given in the entity-body of the server’s response. There is no guarantee that the server will actually honor the request, even though it may seem like a legitimate request at the time of acceptance. |
|
203 Non-Authoritative Information |
The information in the entity header is from a local or third-party copy, not from the original server. |
|
204 No Content |
A status code and header are given in the response, but there is no entity-body in the reply. Browsers should not update their document view upon receiving this response. This is a ... |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access