HTTP status Code detailed

Source: Internet
Author: User
Tags response code

When a viewer accesses a webpage, the browser of the viewer makes a request to the server where the page is located. When a Web page is received and displayed by the browser, the server on which the page resides returns a message header (server header) that contains the HTTP status code to respond to the browser's request.

1.1xx Temporary response
The 1XX response code represents the request being received and needs to continue processing.
1) 100:continue/Continue
HTTP 1.1 New status code. The request has been received by the server and is waiting for the remainder.
2) 101:switch protocols/Protocol Conversion
HTTP 1.1 New status code. The request has been received by the server and notifies the client to switch protocol completion requests.

2.2XX Success
A response code of 2XX indicates that the request has been successfully processed by the server.
1) 200:ok/Normal
The request was successful and the request content is returned at the same time.
2) 201:create/has been created
The request has been implemented, a new resource has been created based on the request, and the URI of the resource is returned.
3) 202:accepted/Accept
The request has been accepted and the server is processing it.
4) 203:non-authoritative information/unofficial information
HTTP 1.1 New status code. The content has returned normally, but may be from another source.
5) 204:no content/no content
HTTP 1.1 New status code. The request has been processed, but no content is required or returned.
6) 205:reset content/Reset Content
HTTP 1.1 New status code. The request has been processed and no content is returned, but the document needs to be reset.
7) 206:partial content/local content.
HTTP 1.1 New status code. The request has been processed and the local content (fragment) has returned normally.

3.3xx redirection
A response code of 3XX indicates that the client needs further action and is usually used for redirection.
1) 300:multiple choices/multiple options
The requested resource has multiple optional items that the client can choose to redirect.
2) 301:moved permanently/Permanent Mobile
The requested resource has been permanently moved to the new location.
3) 302:found/has been found
The requested resource is temporarily responding from a different location.
4) 303:see other/See other locations
HTTP 1.1 New status code. The requested resource can be found in a different location and should be accessed by a GET method.
5) 304:not modified/not modified
The contents of the client request have not changed and the server will return empty content.
6) 305:use proxy/use Agent
HTTP 1.1 New status code. The requested resource must be accessed through the specified proxy.
7) 307:temporary redirect/Temporary redirect
HTTP 1.1 New status code. The requested resource can be found in a different location and should be accessed by post.

4.4xx Error
The 4xx response code indicates that the client may have an error and the server cannot handle it correctly.
1) 400:bad request/error Request
The client's request contains a syntax error.
2) 401:unauthorized/not authorized
The client's request requires authentication and the server validation failed.
3) 403:forbidden/Forbidden
The server refused to execute the client's request.
4) 404:not found/not found
The resource requested by the client was not found.
5) 405:method not allowed/method not allowed
HTTP 1.1 New status code. The method requested by the client cannot be used to request the corresponding resource.
6) 406:not acceptable/cannot access
HTTP 1.1 New status code. The resource type requested by the client does not match the condition in the request header.
7) 407:proxy authentication required/Proxy Server Authentication requirements
HTTP 1.1 New status code. The client's request needs to be verified through a proxy server.
8) 408:request timeout/Request Timeout
HTTP 1.1 New status code. The server waits for a long time for the client to send requests.
9) 409:conflict/Conflict
HTTP 1.1 New status code. The resource requested by the client is in conflict with the current state and the request cannot be completed.
) 410:gone/is not available
HTTP 1.1 New status code. The resource requested by the client is no longer available and has no forwarding address.
One) 411:length required/need data length
HTTP 1.1 New status code. The server requires the client to provide the requested data length.
412:precondition failed/Prerequisites Error
HTTP 1.1 New status code. The server failed to meet the prerequisites in the request header.
413:request entity Too large/request entity too large
HTTP 1.1 New status code. The resource requested by the client is too large and the server rejects the request.
414:request URI Too long/request URI too long
HTTP 1.1 New status code. The requested URI is too long.
415:unsupported Media type/not supported
HTTP 1.1 New status code. The server does not recognize the format type that is included with the request.
416:requested Range not satisfiable/request scope is not satisfied
HTTP 1.1 New status code. The scope Information Server in the request header could not be satisfied.
417:expectation failed/expected failure
HTTP 1.1 New status code. The expected information Server in the request header is not satisfied.

5.5XX Server Error
The 5xx response code indicates that the server has an error or an exception occurred.
1) error/Internal Server error 500:internal server
The server encountered an unknown error causing the request to not complete.
2) 501:not implemented/not implemented
The server does not support the functionality requested by the client.
3) 502:bad gateway/Gateway Error
The gateway or proxy server received an invalid response from the remote server.
4) 503:service unavailable/Service not available
The server has been overloaded or maintenance has caused the request to fail to complete.
5) 504:gateway timeout/Gateway Timeout
HTTP 1.1 New status code. The gateway or proxy server waits for a long time for the remote server to respond.
6) 505:http version not supported/http is not supported
HTTP 1.1 New status code. The server does not support the HTTP version indicated by the request.

HTTP status Code detailed

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.