What are the 1xx,2xx,3xx,4xx,5xx status codes in the HTTP protocol, listing common error codes and their meanings?

Source: Internet
Author: User
Tags error code http request valid

Transferred from: http://m.blog.csdn.net/blog/u013857407/21741847

HTTP protocol status code, refers to the HTTP protocol operation by the client to make a request connection, the server establishes a connection, the client sends an HTTP request, the server returns the response information, and in this process because the client or the server side of the problem will return the corresponding error code and display to the user, The corresponding error code indicates a different error message, according to which the user can adjust the corresponding action to modify the error, and ultimately avoid the false reproduction

The HTTP protocol status code has a total of 5 categories, namely 1xx,2xx,3xx,4xx,5xx with 2 digits to indicate different errors:

The 1XX class status code information indicates: a temporary response. Clients should be prepared to receive one or more 1XX responses before they receive a regular response

2XX Class Status code information indicates that the server successfully received the client request

The 3XX class status code information indicates that the client browser must take more action to implement the request. For example, the browser might have to request a different page on the server, or repeat the request through a proxy server

4XX Class Status code information indicates that the client appears to have a problem with an error. For example: A client requests a page that does not exist, and the client provides valid authentication information

5XX Class Status code information indicates that the server encountered an error and could not complete the request

Status code meaning

100--customer must continue to make a request

101--client requires server to convert HTTP protocol version on request

200--Trading Success

201--prompt to know the URL of the new file

202--accepted and processed, but processing not completed

203--return information is indeterminate or incomplete

204--request received, but return information is empty

205--the server has completed the request, the user agent must reset the files that are currently viewed

206--server has completed a partial user's GET request

300--requested resources can be obtained in multiple places

301--Delete request data

302--found the request data at a different address

303--advising customers to access other URLs or access methods

304--client has performed a get, but the file has not changed

The resource requested by 305--must be obtained from the address specified by the server

306--code used in previous versions of HTTP, no longer used in the current version

307--declaring the requested resource temporary deletion

400--error requests, such as syntax errors

401--Request Authorization failed

402--reserved valid Chargeto header response

403--Request not allowed

404--no files, queries, or URLs found

405--the method defined by the user in the Request-line field does not allow

406--request resource is inaccessible based on accept drag sent by user

407--similar to 401, the user must first be authorized on the proxy server

408--client does not complete the request within the user-specified time of starvation

409--the current resource state, the request cannot be completed

This resource is no longer available on the 410--server and has no further reference address

411--server rejects user-defined Content-length property requests

412--one or more request header fields are incorrect in the current request

413--the requested resource is greater than the size allowed by the server

414--The requested resource URL is longer than the length allowed by the server

415--requesting a resource does not support requesting an item format

The 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 field

The 417--server does not meet the expectations specified by the request Expect header field, and if it is a proxy server, the next level of server may not satisfy the request

500--Server generates internal error

501--server does not support the requested function

502--server is temporarily unavailable, sometimes to prevent system overloads

503--server overload or pause repair

504--Gateway overload, Server uses another gateway or service to respond to users, waiting time setting value is longer

505--server does not support or deny the HTTP version specified in the request header

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.