Summary of HTTP status codes (common)

 Let's take a look at the common status codes in HTTP (7 common)

Table of contents

 Let's take a look at the common status codes in HTTP (7 common ones )

Detailed status code 200:

Detailed status code 301:

Detailed status code 302:

Detailed status code 304:

Detailed status code 403:

Detailed status code 404:

Detailed explanation of status code 500:


What are HTTP status codes:

The HTTP status code is returned by the server to the client. Its core function is for the web server to tell the client what happened to the current web page, or the response status of the current web server. Therefore, the HTTP status code is often used to judge and analyze the running status of the current web server. 

Here are 7 common status codes:

Status code 200:

Status code 200 indicates that the server responded successfully , that is, the server found the content requested by the client and returned the content to the client.

Status code 302:

Status code 302 represents a temporary jump . For example: URL address A can jump to URL address B, but this is not permanent. After a period of time, URL address A may also jump to URL address C.

Status code 301:

Status code 301 is similar to status code 302. The difference is that status code 301 often represents a permanent redirection . It is worth noting that this kind of redirection jump is not a server jump in a strict sense, but a client redirection. terminal jump . This "jump" action is issued by the server to the client by returning status code 301, allowing the client to complete the jump.

Status code 304:

The server can tell the client that the requested resource is successful by returning a status code of 304 , but this resource is not provided by the server and returned to the client, but the resource that exists in the client's local browser cache, because it can be obtained from the cache. Thereby saving the overhead of transmission.

Status code 403:

Status code 403 means that the requested server resource permission is insufficient , that is, there is no permission to access the server resource, or the requested IP address is blocked.

Status code 404:

Status code 404 means that the resource does not exist on the server , or the server cannot find the resource requested by the client, which is the most common request error code.

Status code 500:

Status code 500 represents a program error , that is to say, the requested webpage program itself reported an error. An error occurred in the web program on the server side. Since the current browsers will do some processing on the status code 500, in general, a customized error page will be returned.

status code 200 status code 301
status code 302 status code 304
status code 403 status code 404
status code 500

Detailed status code 200:

Status code 200 indicates that the server responded successfully , that is, the server found the content requested by the client and returned the content to the client.

As shown in the picture:

Detailed status code 302:

Status code 301 represents a temporary jump . For example: URL address A can jump to URL address B, but this is not permanent. After a period of time, URL address A may also jump to URL address C.

When the server returns status code 302, it means that the request has been redirected, and this redirection is a temporary redirection . This redirection is not permanent . It may change after a few days and redirect to another URL address. up.

As shown in the picture:

Detailed status code 301:

Status code 301 is similar to status code 302. The difference is that status code 301 often represents a permanent redirection . It is worth noting that this kind of redirection jump is not a server jump in a strict sense, but a client redirection. terminal jump . This "jump" action is issued by the server to the client by returning status code 301, allowing the client to complete the jump.

As shown in the picture:

​​​​​​​

Detailed status code 304:

The server can tell the client that the requested resource is successful by returning a status code of 304 , but this resource is not provided by the server and returned to the client, but the resource that exists in the client's local browser cache, because it can be obtained from the cache. Thereby saving the overhead of transmission.

As shown in the picture:

Detailed status code 403:

Status code 403 means that the requested server resource permission is insufficient , that is, there is no permission to access the server resource, or the requested IP address is blocked.

As shown in the picture:

Detailed status code 404:

Status code 404 means that the resource does not exist on the server , or the server cannot find the resource requested by the client, which is the most common request error code.

Detailed explanation of status code 500:

Status code 500 represents a program error , that is to say, the requested webpage program itself reported an error. An error occurred in the web program on the server side. Since the current browsers will do some processing on the status code 500, in general, a customized error page will be returned.

As shown in the picture:

 Hurry up to like and collect it!

Guess you like

Origin blog.csdn.net/Z_CH8648/article/details/127938579