Details of various HTTP return status codes and return Status Codes
If a request sent to your server requires that a webpage on your website be displayed (for example, when a user accesses your webpage through a browser or crawls a webpage through Googlebot ), the server returns the HTTP
Common HTTP status codes and common http Status Codes
200 OK request successful. It is generally used for GET and POST requests.
301 Moved Permanently is Permanently Moved. The requested resource has been permanently moved to the new URI. The returned information will include the new URI, And the browser will automatic
Explanation of HTTP status codes and explanation of http Status Codes
1xx: Information
Message
Description
100 Continue
The server only receives some requests, but once the server does not reject the request, the client should continue to send other requests.
101 Switching Protoc
Status Codes 301 and 302 are different. Status Codes 301 and 302 are different.1. Official explanation301 redirect: 301 represents permanent transfer (Permanently Moved) 302 redirect: 302 represents temporary transfer (Temporarily Moved) 301 indicates that the resource of the old address A has been permanently removed
HTTP status codes and Status Codes
An error may occur when the browser requests services from the web server. This may return the following series of status messages:1xx: Information
Message:
Description:
100 Continue
The server only receives some req
by user407--similar to 401, the user must first be authorized on the proxy server408--client does not complete the request within the user-specified time of starvation409--the current resource state, the request cannot be completedThis resource is no longer available on the 410--server and has no further reference address411--server rejects user-defined Content-length property requests412--one or more request header fields are incorrect in the current request413--the requested resource is great
-line field does not allow406--request resource is inaccessible based on accept drag sent by user407--similar to 401, the user must first be authorized on the proxy server408--client does not complete the request within the user-specified time of starvation409--the current resource state, the request cannot be completedThis resource is no longer available on the 410--server and has no further reference address411--server rejects user-defined Content-length property requests412--one or more reque
-line field does not allow406--request resource is inaccessible based on accept drag sent by user407--similar to 401, the user must first be authorized on the proxy server408--client does not complete the request within the user-specified time of starvation409--the current resource state, the request cannot be completedThis resource is no longer available on the 410--server and has no further reference address411--server rejects user-defined Content-length property requests412--one or more reque
be authorized on the proxy server408--client does not complete the request within the user-specified time of starvation409--the current resource state, the request cannot be completedThis resource is no longer available on the 410--server and has no further reference address411--server rejects user-defined Content-length property requests412--one or more request header fields are incorrect in the current request413--the requested resource is greater than the size allowed by the server414--The r
HTTP status codes 206 and 416, status 206 and 416
The status code table in the HTTP 2xx range shows: "The request sent by the client has been accepted by the server and processed successfully ".
TTP/1.1 200 OK is the standard response after successful HTTP requests
HTTP/1.1 206 sta
any content. HTTP Status205(reset content)-the server successfully processed the request, but did not return any content. HTTP Status206(partial content)The server successfully processed a partial GET request.HTTP Status 4xx (request error)-These status codes indicate a possible error in the request and hinder the processing of the server. Detailed Code Descript
Status codes for common HTTP request ResponsesSome of the common status codes are:$ – Server successfully returned page 404– requested page does not exist 503– service is not available1xx (Temporary response)A status code that represents a temporary response and requires t
request413--the requested resource is greater than the size allowed by the server414--The requested resource URL is longer than the length allowed by the server415--requesting a resource does not support requesting an item formatThe 416--request contains a range request header field that does not have a range indication value within the current request resource scope, and the request does not contain a If-range request header fieldThe 417--server does not meet the expectations specified by the
Four HTTP status code to return results
4.1 Status code tells the result of requests returned from the server side
Code category Reason phrase
100-199 Information The status code is used to specify certain actions that the client should have accordingly.The 200-299 Success status code is used to indicate that the req
$ OK-[GET]: The server successfully returns the data requested by the user, and the operation is idempotent.
201 CREATED-[Post/put/patch]: User new or modified data succeeded.
202 Accepted-[*]: Indicates that a request has entered the background queue (asynchronous task)
204 NO CONTENT-[delete]: User deleted data successfully.
INVALID request-[Post/put/patch]: The user has made an error, the server does not make a new or modified data operation, the operation is idempotent.
401 Un
HTTP status Code 3XX indicates redirection, indicating that the browser needs to perform some special processing to properly process the request.301 Moved PermanentlyPermanent orientation. The status code indicates that the requested resource has been assigned a new URI and should later use the URI that the resource now refers to.302 FoundTemporary redirection. The stat
2 Opening (successful request) indicates that the status code of the request was successfully processed.200 (success) The server has successfully processed the request. Typically, this indicates that the server provided the requested Web page.201 (created) The request was successful and the server created a new resource.202 (accepted) the server has accepted the request but has not yet processed it.203 (non-authoritative information) the server has su
) the server successfully processed a partial GET request.
3 The beginning (the request is redirected) indicates that to complete the request, further action is required. Typically, these status codes are used for redirection.
300 (multiple choices) for a request, the server can perform a variety of operations. The server can select an action based on the requester (user agent) or provide an action list for
distinguish between the types of data, in fact, a lot of simple, and HTTP status codes is used to pass HTTP processing state, if you use this way to pass the custom processing state, so that HTTP Content can be very simple to pass data, so that the data format is not limited to JSON, can also use other formats (text, XML, HTML), and XMLHttpRequest itself has the ability to handle HTTP
Some common HTTP status codes are:200– server successfully returned to Web page404– The requested page does not exist503– Service Not availableCommon HTTP status Code Daquan1XX (Temporary response)A status code that represents a temporary response and requires the requestor to continue the operation.Code descriptionHTT
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.