The entire web works based on HTTP protocol. The browser sends communication to the server and gets response to display it on the frontend. During this process, there could be lot of errors happen. In order to troubleshoot these errors, web servers returns a three digit HTTP status codes in the response. This status code, also called HTTP error code, is an indication of what went wrong in the communication. Receiving HTTP status codes with 2xx series from the server response indicates that the server received the request from the client and processed successfully. Here we will explain the list of 2xx HTTP status code with explanation.
HTTP Status Codes
There are 5 different groups of HTTP status codes:
- 1xx status codes for information
- 2xx status codes for success
- 3xx status codes for redirection
- 4xx status codes for client errors
- 5xx status codes for server errors
2xx Status Codes
2xx status codes indicate that the communication is successful and the web server could process the request received from the client browser. Below are the list of 2xx HTTP status codes.
- 200 – OK
- 201 – Created
- 202 – Accepted
- 203 – Non-authoritative information
- 204 – No content
- 205 – Reset content
- 206 – Partial content
Let us explain each status code in detail.
200 – OK
This is a typical response received from the server for a successfully processed request. For example, when you use tools like URL inspection tool available in the Google Search Console account you will see a response with “200 – OK” if the crawler can successfully access the webpage.
200 – OK is correct response a server should return for a successful request which indicates there are no problems. You can also check the status of the server response codes using the HTTP header checker tool.
201 – Created
Status code “201 – Created” indicates that the server completed the received request from the client and created a new resource based on the received request. The initial request acts as a trigger for generating a new response in a server. For example, a server generates a new response based on a user login details.
202 – Accepted
When the server accepted the request from the client but not yet processed then the code “202 – Accepted” is returned. This is only indication of the acceptance of request but the result of request processing will be known later when the actual processing takes place.
203 – Non authoritative Information
When the server processed the request successfully but returns the information from another resource to the requested client then the code “203 – Non authoritative Information” is received. This status code is not valid in HTTP/1.0.
204 – No Content
When the server could not able to find any content for the received request, it sends a response code “204 – No Content” to indicate the client that no content is returned.
205 – Reset Content
This is similar to code 204, the request was processed successfully by the server but no content is returned. The difference here is that 205 code informs the client to reset the document view.
206 – Partial Content
Server returns this code when it sends part of the requested resource due to the range mentioned in the request header. For example, the client may request a range of file to download and use multiple streams to download the complete content.