Home  >  Article  >  What are the common http status codes?

What are the common http status codes?

烟雨青岚
烟雨青岚Original
2020-06-29 09:45:089729browse

Common http status codes are: 1. 100, which is used to tell the client that it should continue to send requests; 2. 200, indicating that the server has successfully accepted the request and returned the result; 3. 202, indicating that the server has The request is accepted but has not been processed yet; 4. 404, the request failed; 5. 500, the server encountered an unknown error.

What are the common http status codes?

The following common http status codes:

100: This status code tells the client that it should continue to send requests , this temporary response is used to notify the client that part of the request has been accepted by the server, but the client should continue to send the remaining part of the request. If the request has been completed, this response is ignored, and the server will send it to the client after the request is completed. A final result

200: This is the most common http status code, indicating that the server has successfully accepted the request and will return the final result requested by the client

202: Indicates that the server has accepted The request has been made, but it has not been processed, and it is not certain whether the request will be processed eventually

204: The server successfully processed the request, but did not return any entity content, and may return new header meta information

301: The webpage requested by the client has been permanently moved to a new location. When the link changes, a 301 code is returned to tell the client the change in the link. The client saves the new link and makes a request to the new link. , the request result has been returned

404: The request failed, the resource requested by the client was not found or does not exist

500: The server encountered an unknown error, resulting in the inability to complete the client's current request. .

503: The server cannot handle the current request due to temporary server overload or maintenance. The above http status code is the status code often returned by the server. The user can only know whether the server is running normally through the status of the browser. Generally, you will not see the status code of the server except for the error status code. Have you learned about it, new SEOers? The content editor is from 51 Featured Shopping SEO optimization staff. If you want to know more about status codes, you can add me as a friend and communicate with each other to learn

For more related knowledge, please visit PHP Chinese website! !

The above is the detailed content of What are the common http status codes?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn