2020 / FEBRUARY / 27


Error2XX Response codes

2XX Response Codes


2XX Response Codes

What is a 2xx Response Code?

2xx status code indicates that your request was successful. Whenever you encounter this error, it means that the server has received your request, understood it, accepted it and processed it. They basically indicate that the communication is successful and the web server could process the request received from the client browser. Below is the list of 2xx HTTP status codes.

  1. 200 – OK
  2. 201 – Created
  3. 202 – Accepted
  4. 203 – Non-authoritative information
  5. 204 – No content
  6. 205 – Reset content
  7. 206 – Partial content

What do 2xx Response Codes Look Like?

2xx codes indicate successful responses usually this means the action requested by the client was received, understood and accepted successfully. A 200 status code may appear online like this-

Guide to 2xx Response Codes-

Some of the most common HTTP 2xx response codes are listed below:

S no. Response Code Response Name Description
1 200 OK Standard response for successful HTTP requests. The actual response will depend on the request method used.
2 201 Created The request has been fulfilled, resulting in the creation of a new resource.
3 202 Accepted The request has been accepted for processing, but the processing has not been completed.
4 203 Non-Authoritative Information 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.
5 204 No Content The server successfully processed the request and is not returning any content.
6 205 Reset Content The server successfully processed the request but is not returning any content.
7 206 Partial Content The server is delivering only part of the resource (byte serving) due to a range header sent by the client.
8 207 Multi-Status 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.
9 208 Already Reported The members of a DAV binding have already been enumerated in a preceding part of the (multistatus) response, and are not being included again.
10 226 IM Used 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.

Unofficial Codes

S no. Response Code Response Name Description
1 218 This is fine Used as a catch-all error condition for allowing response bodies to flow through Apache when ProxyErrorOverride is enabled.

Conclusion

The web server returns 2xx server status codes indicating the status of the request. Website owners use these codes for troubleshooting purposes to understand the status of the HTTP transaction. 200 is the most popular status code that indicates OK status, that the request is accepted, understood and processed by the server.

Share:

subscribe card
Subscribed Successfully!

Recommended Posts