In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces what the common HTTP status codes are, which are very detailed and have certain reference value. Friends who are interested must finish reading them.
The HTTP status code is a 3-digit code used to represent the HTTP response status of the web server.
The first number of all status codes represents one of the five states of the response.
When a user attempts to access content on a running host through the HTTP or FTP protocol, the Web server returns a numeric code indicating the status of the request.
The status code is recorded in the server log and may also be displayed in a Web browser or FTP client.
That is, the error message code that the browser displays when we open the page. The status code can indicate whether a specific request was successful or not, and it can also reveal the exact reason why the request failed.
The meaning expressed by the HTTP protocol status code can be divided into five categories, generally speaking:
1 × ×: reserved
2 × ×: indicates that the request was received successfully
3 × ×: to complete the request, the customer needs to further refine the request.
4 × ×: customer error
5 × ×: server error
According to Google's search data, the following are the most common errors, with HTTP 500s twice as likely as 404 errors:
500 internal server error
The definition of the HTTP 500 error fully proves that this is one of the most common HTTP errors. In general, HTTP 500errors occur when there is an error in the server's code, or the information returned when an internal error occurs on the web server. For example, access requests will not be handled correctly when the web server is overloaded.
404 file not found
Most people know this mistake. A 404 error occurs when a user tries to access a resource that does not actually exist on a Web server (usually a web page). The error may be caused by an invalid link, a URL misspelling, or because the virtual host has moved the requested page somewhere else (or deleted the requested page). Some websites set up custom pages to prevent the adverse effects of bad links.
403 access prohibited
The 403 error is similar to the 401 error, except that the 401 error is unauthorized and the 403 error is forbidden. Any login has no effect on the 403 error. A 403 error occurs when you try to access a (prohibited) website directory.
400 error request
The Web server informs the visitor that the program that the visitor uses to access the site has gone wrong or that the request for access has been corrupted by returning an error in HTTP 400.
401 unauthorized
When a visitor tries to access a restricted page but is not authorized, the site returns an HTTP 401 error. An incorrect login attempt is the main cause of this error.
200 request successful
The request has succeeded, and the desired response header or data body of the request will be returned with this response.
206 part content
The server has successfully processed some GET requests. HTTP download tools such as FlashGet or Xunlei use such responses to resume transmission at breakpoints or to decompose a large document into multiple download segments at the same time.
301 permanent redirection
The requested resource has been permanently moved to a new location, and any future reference to this resource should use one of several URI returned by this response.
302 temporary redirection
The requested resources now temporarily respond to requests from different URI. Because such redirects are temporary, the client should continue to send future requests to the original address.
502 invalid gateway
When the server working as a gateway or agent tries to execute the request, it receives an invalid response from the upstream server.
The above is all the contents of the article "what are the common HTTP status codes?" Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.