HTTP Status Codes Flashcards
Informational Responses
1xx
1xx
Informational Responses
Success
2xx
2xx
Success
Redirection
3xx
3xx
Redirection
Client Errors
4xx
4xx
Client Errors
Server Errors
5xx
5xx
Server Errors
The server has received the request headers and the client should proceed to send the request body (in the case of a request for which a body needs to be sent; for example, a POST request). Sending a large request body to a server after a request has been rejected for inappropriate headers would be inefficient. To have a server check the request’s headers, a client must send Expect: 100-continue as a header in its initial request and receive a 100 Continue status code in response before sending the body. If the client receives an error code such as 403 (Forbidden) or 405 (Method Not Allowed) then it shouldn’t send the request’s body. The response 417 Expectation Failed indicates that the request should be repeated without the Expect header as it indicates that the server doesn’t support expectations (this is the case, for example, of HTTP/1.0 servers).
100 Continue
The requester has asked the server to switch protocols and the server has agreed to do so.
101 Switching Protocols
A WebDAV request may contain many sub-requests involving file operations, requiring a long time to complete the request. This code indicates that the server has received and is processing the request, but no response is available yet.[7] This prevents the client from timing out and assuming the request was lost.
102 Processing
Used to return some response headers before final HTTP message.
103 Early Hints
Standard response for successful HTTP requests. The actual response will depend on the request method used. In a GET request, the response will contain an entity corresponding to the requested resource. In a POST request, the response will contain an entity describing or containing the result of the action.
200 OK
The request has been fulfilled, resulting in the creation of a new resource
201 Created
The request has been accepted for processing, but the processing has not been completed. The request might or might not be eventually acted upon, and may be disallowed when processing occurs.
202 Accepted
The server is a transforming proxy (e.g. a Web accelerator) that received a 200 OK from its origin, but is returning a modified version of the origin’s response.
203 Non Authoritative Information
The server successfully processed the request and is not returning any content.
204 No Content
The server successfully processed the request, but is not returning any content. Unlike a 204 response, this response requires that the requester reset the document view.
205 Reset Content
The server is delivering only part of the resource (byte serving) due to a range header sent by the client. The range header is used by HTTP clients to enable resuming of interrupted downloads, or split a download into multiple simultaneous streams.
206 Partial Content
The message body that follows is by default an XML message and can contain a number of separate response codes, depending on how many sub-requests were made.
207 Multi Status
The members of a DAV binding have already been enumerated in a preceding part of the (multistatus) response, and are not being included again.
208 Already Reported
The server has fulfilled a request for the resource, and the response is a representation of the result of one or more instance-manipulations applied to the current instance.
226 IM Used