In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
What are the common HTTP status codes, many novices are not very clear about this, in order to help you solve this problem, the following small series will explain in detail for everyone, people who have this need can learn, I hope you can gain something.
HTTP status codes are the language in which information is communicated between servers and clients. Here are some common HTTP status codes.
1XX Series
Specify certain actions that the client should take to indicate that the request has been accepted and needs to continue processing. Since there are no 1xx status codes defined in HTTP/1.0, the server forbids sending 1xx responses to such clients except under certain experimental conditions.
2XX Series
The request has been successfully received, understood, and accepted by the server. The most common ones in this series are 200 and 201 status codes.
200 status code
Indicates that the request was successful, and the response header or data body expected by the request is returned with the response.
201 status code
Indicates that the request was successful and that the server created a new resource whose URI has been returned with the Location header. If the required resources cannot be created in time, return to [202 Accepted].
202 Status code
The server has accepted the request but has not yet processed it.
3XX series
These status codes are used for redirection, and the subsequent request address (redirection target) is indicated in the Location field of this response. The most common ones in this series are 301 and 302 status codes.
301 Status Code
The requested resource has been permanently moved to a new location. When the server returns this response (a response to a GET or HEAD request), it automatically takes the requester to the new location.
302 Status Code
The requested resource temporarily responds to the request from a different URI, but the requester should continue to use the original location for future requests.
304 Status Code
The requested page has not been modified since the last request. When the server returns this response, it does not return web content. If the page hasn't changed since the requester's last request, you should configure the server to return this response (called the If-Modified-Since HTTP header).
4XX Series
Indicates a request error. It appears that an error may have occurred on the client side, interfering with server processing. Common: 401, 404 status code.
401 status code
Request requires authentication. For web pages that require login, the server may return this response.
a 403 status code
The server understood the request, but refused to execute it. Unlike the 401 response, authentication does not provide any help, and the request should not be resubmitted.
404 status code
The request failed because the requested resource was not found on the server. There is no information to tell users whether the condition is temporary or permanent. If the server knows this, it should use the 410 status code to inform it that the old resource is permanently unavailable due to some internal configuration problem and that there is no address to jump to. The 404 status code is widely used when the server does not want to reveal exactly why the request was rejected or when no other suitable response is available.
5xx series
It means that the server has an error or abnormal state in the process of processing the request, or it may be that the server realizes that the current software and hardware resources cannot complete the processing of the request. There are 500 and 503 status codes.
500 status code
The server encountered an unexpected condition that prevented it from completing the request. Generally, this problem occurs when there is an error in the server code.
503 status code
The server is currently unable to process requests due to temporary server maintenance or overload. Usually, this is a temporary condition that will recover over time.
504 Status Code
A 504 error represents a gateway timeout, when the server is acting as a gateway or proxy, but does not receive requests from upstream servers in a timely manner.
Did reading the above help you? If you still want to have further understanding of related knowledge or read more related articles, please pay attention to the industry information channel, thank you for your support.
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.