Reprint: HttpStatusCode Status Description C # edition

Source: Internet
Author: User

Continue is equivalent to HTTP status 100. Continue indicates that the client may continue its request.

Switchingprotocols is equivalent to HTTP status 101. Switchingprotocols indicates that the protocol version or protocol is being changed.

OK is equivalent to HTTP status 200. OK indicates that the request was successful and the requested information is included in the response. This is the most commonly received status code.

Created is equivalent to HTTP status 201. Created indicates that a request causes a new resource to be created before the response is sent.

Accepted is equivalent to HTTP status 202. Accepted indicates that the request has been accepted for further processing.

Nonauthoritativeinformation is equivalent to HTTP status 203. Nonauthoritativeinformation indicates that the returned meta-information is from the cached copy instead of the original server and may therefore be incorrect.

Nocontent is equivalent to HTTP status 204. The nocontent indicates that the request was successfully processed and that the response has been set to no content.

Resetcontent is equivalent to HTTP status 205. Resetcontent indicates that the client should reset (or reload) the current resource.

Partialcontent is equivalent to HTTP status 206. Partialcontent indicates that the response is a partial response requested by a GET request that includes a byte range.

Multiplechoices is equivalent to HTTP status 300. Multiplechoices indicates that the requested information has multiple representations. The default action is to treat this state as a redirect and to follow the contents of the location header associated with this response.

Ambiguous is equivalent to HTTP status 300. Ambiguous indicates that the requested information has multiple representations. The default action is to treat this state as a redirect and to follow the contents of the location header associated with this response.

Movedpermanently is equivalent to HTTP status 301. Movedpermanently indicates that the requested information has been moved to the URI specified in the location header. The default action when this state is received is to follow the location header associated with the response.

Moved is equivalent to HTTP status 301. Moved indicates that the requested information has been moved to the URI specified in the location header. The default action when this state is received is to follow the location header associated with the response. When the original request method is POST, the redirected request uses the GET method.

Found is equivalent to HTTP status 302. Found indicates that the requested information is located at the URI specified in the location header. The default action when this state is received is to follow the location header associated with the response. When the original request method is POST, the redirected request uses the GET method.

Redirect is equivalent to HTTP status 302. Redirect indicates that the requested information is located at the URI specified in the location header. The default action when this state is received is to follow the location header associated with the response. When the original request method is POST, the redirected request uses the GET method.

Seeother is equivalent to HTTP status 303. As a result of POST, Seeother automatically redirects the client to the URI specified in the location header. Generates a request for the resource specified by the location header with GET.

Redirectmethod is equivalent to HTTP status 303. As a result of POST, Redirectmethod automatically redirects the client to the URI specified in the location header. Generates a request for the resource specified by the location header with GET.

Notmodified is equivalent to HTTP status 304. Notmodified indicates that the cached copy of the client is up to date. The contents of this resource were not transferred.

UseProxy is equivalent to HTTP status 305. UseProxy indicates that the request should use a proxy server that is located in the URI specified in the location header.

Unused is equivalent to HTTP status 306. Unused is a recommended extension of the http/1.1 specification that is not fully specified.

Temporaryredirect is equivalent to HTTP status 307. Temporaryredirect indicates that the request information is located at the URI specified in the location header. The default action when this state is received is to follow the location header associated with the response. When the original request method is post, the redirected request will also use the Post method.

Redirectkeepverb is equivalent to HTTP status 307. Redirectkeepverb indicates that the request information is located at the URI specified in the location header. The default action when this state is received is to follow the location header associated with the response. When the original request method is post, the redirected request will also use the Post method.

Badrequest is equivalent to HTTP status 400. Badrequest indicates that the server failed to recognize the request. If there are no other applicable errors, or if you do not know the exact error or error without your own error code, send badrequest.

Unauthorized is equivalent to HTTP status 401. Unauthorized indicates that the requested resource requires authentication. The Www-authenticate header contains detailed information on how to perform authentication.

Paymentrequired is equivalent to HTTP status 402. Keep the paymentrequired for future use.

Forbidden is equivalent to HTTP status 403. Forbidden indicates that the server refused to satisfy the request.

NotFound is equivalent to HTTP status 404. NotFound indicates that the requested resource is not on the server.

Methodnotallowed is equivalent to HTTP status 405. Methodnotallowed indicates that the requested method (POST or GET) is not allowed on the requested resource.

Notacceptable is equivalent to HTTP status 406. Notacceptable indicates that the client has used the accept header to indicate that it will not accept any available representations of the resource.

Proxyauthenticationrequired is equivalent to HTTP status 407. Proxyauthenticationrequired indicates that the requested proxy requires authentication. The Proxy-authenticate header contains detailed information on how to perform authentication.

Requesttimeout is equivalent to HTTP status 408. Requesttimeout indicates that the client did not send the request within the time the server expects the request.

Conflict is equivalent to HTTP status 409. Conflict indicates that the request could not be executed due to a conflict on the server.

Gone is equivalent to HTTP status 410. Gone indicates that the requested resource is no longer available.

Lengthrequired is equivalent to HTTP status 411. Lengthrequired indicates that a required content-length header is missing.

Preconditionfailed is equivalent to HTTP status 412. Preconditionfailed indicates that the condition set for this request failed and cannot execute the request. The condition is set with a conditional request header (such as If-match, If-none-match, or if-unmodified-since).

Requestentitytoolarge is equivalent to HTTP status 413. Requestentitytoolarge indicates that the request is too large for the server to process.

Requesturitoolong is equivalent to HTTP status 414. Requesturitoolong indicates that the URI is too long.

Unsupportedmediatype is equivalent to HTTP status 415. Unsupportedmediatype indicates that the request is not a supported type.

Requestedrangenotsatisfiable is equivalent to HTTP status 416. Requestedrangenotsatisfiable indicates that the data range requested from the resource cannot be returned because the beginning of the range precedes the beginning of the resource, or because the end of the range is after the end of the resource.

Expectationfailed is equivalent to HTTP status 417. Expectationfailed indicates that the server failed to conform to the expected value given in the Expect header.

Internalservererror is equivalent to HTTP status 500. Internalservererror indicates a general error occurred on the server.

Notimplemented is equivalent to HTTP status 501. Notimplemented indicates that the server does not support the requested function.

Badgateway is equivalent to HTTP status 502. Badgateway indicates that the intermediate proxy server received an error response from another agent or from the original server.

Serviceunavailable is equivalent to HTTP status 503. Serviceunavailable indicates that the server is temporarily unavailable, usually due to excessive loading or maintenance.

Gatewaytimeout is equivalent to HTTP status 504. Gatewaytimeout indicates that the intermediate proxy server timed out while waiting for a response from another agent or the original server.

Httpversionnotsupported is equivalent to HTTP status 505. Httpversionnotsupported indicates that the server does not support the HTTP version of the request.


Edit reminder: Please note that the article "HttpStatusCode Status Description C # edition" is paginated. Original Address http://www.softexam.net/a/201304/524.html

Reprint: HttpStatusCode Status Description C # edition

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.