Introduction of common status codes for HTTP

Source: Internet
Author: User

This article only describes the common code, more information about the status codes, see the following links

Https://developer.mozilla.org/zh-CN/docs/Web/HTTP/Status

. Status (State code):

.1xx:100-101 Information Tips

.2xx:200-206 Success

.3xx:300-305 redirection, such as temporary redirection or permanent redirection

.4xx:400-415 Error class information, client-side error, such as validation failure

.5xx:500-505 Error class information, server-side error

Common status codes for HTTP protocols

.200: Successful, the request data is sent through the entity-body part of the response message; OK

.301: The requested URL points to a resource that has been deleted, but the new location where the resource is located is indicated in the response message through the header position; Moved Permanently

Access Www.360buy.com was adjusted two times, first jumping to http://www.jd.com and then adjusting to https://www.jd.com

.302: Response message location indicates temporary new position of resource moved temporarily

Temporary jump and the difference between permanent jump, permanent jump refers to the address of the visit does not exist, I hope users do not visit this site next time

Temporary jump is two pages are present, such as http://www.jd.com and https://www.jd.com may later http://www.jd.com This page will be resumed later

.304: The client makes a conditional request, but the resource on the server has not changed, notifying the client by responding to this response status code; not Modified

If you visit the same page, refresh, return 304, the server content has not changed, the client refers to the use of caching to respond, if you want to forcibly refresh the page, you can use Shift+f5 refresh the page

.401: Need to enter account and password authentication to access resources; unauthorized, such as windows that pop up basic validation

.403: request is forbidden; Forbidden, such as no access, or iptables, directory permissions, SELinux control will result in a forbidden access

When external resources access, is the Apache this account to provide services, the user access is actually using Apache this account to obtain resources, while the service is running with root, this is the management process. Service is a service process, the account is Apache

.404: The server could not find the resource requested by the client; if the site has a large number of 404, there may be a problem connecting the page. Be aware that

.500: Server internal error, Internal server errors, such as htaccess file Write, more ... option, the service may be able to start, but 500 error occurred while accessing the Web page

.502: The proxy server received a pseudo-response from the backend server, such as unable to connect to the gateway; Bad gateway error between Proxy and back-end servers, the backend server is not responding

.503: Service Unavailable, temporary server maintenance or overload, server unable to process request

.504: Gateway timed out


This article is from the "Sunshine Ops" blog, please be sure to keep this source http://ghbsunny.blog.51cto.com/7759574/1970445

Introduction of common status codes for HTTP

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.