DEV Community

Cover image for Know About HTTP Response Status Codes
Ritul Singh
Ritul Singh

Posted on

Know About HTTP Response Status Codes

HTTP response status codes are 3-digit numbers that are used to indicate the status of a request made to a web server. They are returned by the server in response to an HTTP request and provide information about the result of the request.

Here are some common HTTP response status codes and their meanings:

200 OK: This status code indicates that the request was successful and the requested resource was returned.

301 Moved Permanently: This status code indicates that the requested resource has been permanently moved to a new URL. The server returns this code along with the new URL in the response header.

302 Found: This status code indicates that the requested resource has been temporarily moved to a new URL. The server returns this code along with the new URL in the response header.

404 Not Found: This status code indicates that the server could not find the requested resource.

500 Internal Server Error: This status code indicates that there was an error on the server while processing the request.

There are many other HTTP response status codes, each with its own specific meaning. Some of these codes are used more commonly than others, but it's important to be aware of all of them to understand the full range of responses that a server can send.

In addition to the standard HTTP response status codes, some servers may also return custom status codes to provide more information about the result of a request. These custom codes should be used in conjunction with the standard status codes to provide a complete picture of the request's outcome.

Top comments (0)