Http Status Code indication (AJAX,BS structure) _ Other synthesis

Source: Internet
Author: User
The HTTP status code indicates:
2XX success
200 normal; The request is complete.
201 Normal; Immediately following the POST command.
202 normal; Accepted for processing, but processing has not yet completed.
203 normal; Partial information-the information returned is only part of the message.
204 normal; No response-received request, but no information to echo.
3xx redirect
301 Moved-The requested data has a new location and the change is permanent.
302 found-The requested data has a different URI temporarily.
303 See other-you can find a response to a request under another URI, and you should use the Get method to retrieve the response.
304 Not modified-the document is not modified as expected.
305 Use proxy-the requested resource must be accessed through the agent provided in the Location field.
306 unused-is no longer in use, and retains this code for future use.
Error occurred in 4xx client
400 Error request-There is a syntax problem in the request or cannot satisfy the request.
401 not authorized-the client is not authorized to access the data.
402 Payment required-Indicates that the billing system is valid.
403 prohibited-access is not required even with authorization.
404 Not Found-the server cannot find the given resource; The document does not exist.
407 Proxy authentication Request-The client must first use the proxy authentication itself.
415 Media type not supported-server denial of Service request because the format of the request entity is not supported.
Error occurred in 5xx server
500 INTERNAL Error-The server cannot complete the request because of an unexpected condition.
501 not executed-the server does not support the requested tool.
502 Error Gateway-server received an invalid response from the upstream server.
503 cannot get service-the server cannot process the request due to temporary overload or maintenance.
Number NO. 200 Status code
220.181.32.30--[02/sep/2008:00:01:23+0800] "get/article/0572/72570.shtml http/1.1 28361"-"" baiduspider+ (+http ://www.baidu.com/search/spider.htm) "
The 200 in the server log indicates that the Web 72570.shtml download was successful using get delivery mode. That is: When the user or crawler to the Web server to send browsing requests, the server returned to the HTTP data stream contains a status code, 200 response number is a status code, indicating that this page was successfully downloaded.
Number No. 301 Status code
220.181.32.30--[02/sep/2008:00:01:31+0800] "get/my/view.php?aid=14183 http/1.1"-"-" "baiduspider+ (+http:// www.baidu.com/search/spider.htm) "
301 in the server log indicates a successful jump to a dynamic page aid=14183 using get delivery. That is: When a user or a crawler to the Web server to send a browse request, the server returned to the HTTP data stream contains a state code, 301 Redirect is a status code, indicating that this page is permanently transferred to another address. In practice, we can point to a number of domain names to the same Web site, which is the only way the search engine approved a Web site to turn.
Appendix: No. NO. 301 Steering Code
301 redirect in PHP environment
? Header ("http/1.1 moved Permanently");
Header ("location:http://news.msn.com");? > Header ("location:http://news.msn.com");? >
ASP Environment 301 REDIRECT <%@ language=vbscript%> <% response.status= "Moved Permanently" Response.AddHeader "," http://news.msn.com ">
Asp. NET environment, 301 redirects
<script runat= "Server" >
private void Page_Load (object sender, System.EventArgs e)
{
Response.Status = "Moved Permanently";
Response.AddHeader ("Location", "http://news.msn.com");
}
</script>
301 redirects in a CGI perl environment
$q = new CGI;
Print $q->redirect ("http://news.msn.com/");
301 redirects in a JSP environment
<%
Response.setstatus (301);
Response.setheader ("Location", "http://news.msn.com/");
Response.setheader ("Connection", "close");
%> response.setstatus (301);
Response.setheader ("Location", "http://news.msn.com/");
Response.setheader ("Connection", "close");
%>
Online number No. 301 Status Code test Tool
http://www.internetofficer.com/seo-tool/redirect-check/
Number No. 2404 Status code
220.181.32.30--[02/sep/2008:00:01:51+0800] "get/writing http/1.1" 404 4459 "-" "baiduspider+ (+http://www.baidu.com/ search/spider.htm) "
A 404 status code shows that a Web page with a URL address is not available. Many times due to the site's revision, so many old version of the site URL address invalidation. This is where you need to create a 404 status page to ensure that your site is unobstructed and can achieve a loop effect. Remember that the 404 status page needs to be designed separately, not directly on the server side to jump back to the page. Otherwise, the search engine will be a lot of crawl site home error as 404 page processing.
Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.