JspHTTP Status CodeHTTP requests are similar in format to HTTP responses, and have the following structure:
Start with status line +crlf (carriage return line)
0-line or multi-wardrobe module +crlf
A blank line, like CRLF.
Optional message body such as file, query data, query output
For example, a server response header looks like this:http/1.1 okcontent-type:text/htmlheader2: ...
[Website construction knowledge] The most comprehensive IIS status code
SummaryWhen a user attempts to access content on a server running Internet Information Service (IIS) through HTTP or file transfer protocol (FTP), IIS returns a number indicating the status of the request.Code. This status
HTTP status Return code 1xx (ad hoc response)A status code that represents a temporary response and requires the requestor to continue the operation.HTTP Status Return code:Code DescriptionThe request shall continue to be made by the requesting person (continued). The server
Meaning of IIS status code (HTTP request)
SummaryWhen a user attempts to access content on a server that is running Internet Information Service (IIS) through HTTP or file transfer protocol (FTP, IIS returns a digital code indicating the Request status. This status
Meaning of IIS status codeSummaryWhen a user attempts to access content on a server that is running Internet Information Service (IIS) through HTTP or file transfer protocol (FTP, IIS returns a digital code indicating the Request status. This status code is recorded in IIS l
/**
* HTTP Protocol defined status codes
* HTTP protocol status code, call the function only need to assign $num to a known value in the following table will return the state directly.
* @param int $num
* Downloads by http://www.bkjia.com
*/
function HTTPS ($num) {
$http = Array (
"http/1.1 Continue",
101 = "http/1.1
This blog post is about the status code in the HTTP protocol:
What is a status code?A status code refers to a response message that is returned in an HTTP response. Indicates the type of message associated with a number.
).
"206″: Partial content (partial) server successfully processed some GET requests. (HTTP 1.1 new)
"300″: Multiple Choices (multiple choices) the documents requested by the customer can be found in multiple locations that have been listed in the returned document. If the server wants to make a preference, it should be indicated in the location answer header.
"301″: Moved permanently (permanently moved) The requested page has been permanently moved to a new location. When the server return
(1) status code supported by HTTP 1.1
100 the initial request for continue has been accepted, and the customer shall continue to send the rest of the request
101 The switching protocols server converts a client-compliant request to another protocol
200 OK everything is normal, and the response document to the get and post requests follows.
The 201 cre
or cannot complete request
5**
Server error, the server has an error while processing the request
HTTP status Code list
Status Code
Status Code English name
Chinese
HTTP Status Code meaning 1XX** Continue: Informs the client that the operation can continue * 101 Switching protocols: When a client needs to make a communication protocol switch, the server-side response is used in conjunction with the upgrade header 2XX*** Ok: The server correctly responds to the request and returns the
1XX (ad hoc response): A status code that represents a temporary response and requires the requestor to perform an action to continue.
Status code
Description
100 (Continue)
The requestor shall continue to make the request. The return of this
Servlet HTTP Status code The format of the HTTP request and HTTP response message is similar, with the following structure:
Initial status line + carriage return newline character (carriage return + line feed)
0 or more header lines + carriage return line break
A blank line, the carriage return line break
An optional message body, such as file, query da
Profile
When a user attempts to access content on a server that is running Internet Information Services (IIS) through HTTP or File Transfer Protocol (FTP), IIS returns a numeric code that represents the state of the request. The status code is recorded in the IIS log and may also be displayed in a Web browser or FTP client. The
) called Send () method, sending request
2-(load complete) Send () method completed, received all response content
3-(interactive) parsing response content
4-(complete) The response content resolution is complete and can be invoked on the client
Third, data: "{}", data is empty also must pass "{}"; otherwise, the return is in XML format. and prompts ParserError.
The ParserError exception and header type are also related. and encoded header (' content-type:text/html; Charset=utf8 ');
Five, Xml
accepted* 3xx:redirection-further action must be taken on order toComplete the request* 4xx:client error-the request contains bad syntax or cannot beFulfilled* 5xx:server error-the Server failed to fulfill an apparentlyValid request| "100"; Continue| "101"; Switching protocols| "200"; Ok| "201"; Created| "202"; Accepted| "203"; Non-authoritative Information| "204"; No Content| "205"; Reset Content| "206"; Partial Content| "300"; Multiple Choices| "30
continue to send the remainder of the request. (HTTP 1.1 new)? 101-switching Protocols Server translates the client's request to another protocol (HTTP 1.1 new)2xx-SuccessThis type of status code indicates that the server successfully accepted the client request.? 200-okEverything is OK, the answer document for Get and post requests is followed.? The 201-created
One: 1xx (temporary response) represents a temporary response and requires a status code for the requestor to continue the operation. 100 (continued) The requesting person shall continue to make the request. The server returns this code to indicate that the first part of the request was received, waiting for the remainder; 10
In the actual application of website construction, prone to a lot of small mistakes, like MySQL originally optimized not in place, affecting the overall site browsing effect, in fact, the site's regular http Status code performance is the same, Some of the common status codes are:$- Server successfully returned to Web page404- The requested page does not exist503
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.