HTTP response Status Code

Source: Internet
Author: User
Tags deprecated unsupported

Article excerpt from: http://hi.baidu.com/starsecond/blog/item/de75458a3cb1b51ac9fc7a6a.html

============================================================================

Continue
Indicates that the client should continue the request. Loopback is used to notify the client that this request has been received and is not rejected by the server.
The client should continue to send the remaining request data, or the request has been completed, or the loopback data is ignored. The server must send
The final loopback is after the request.
101 Switching protocols
The server changes the current connection application protocol according to the customer service request, through the upgrade header information. The server will immediately change the protocol based on the upgrade header
At the end of the 101 send-back with a blank line.
Successful
=================================
OK
Indicates that the client's request has been successfully received, resolved, accepted.
201 Created
The request is complete and a new return resource is created. The resource that is created may be a URI resource, usually a URI resource specified in the location header. Loopback should contain one entity data
It also contains resource attributes and location to select the appropriate method through the user or user agent. The Entity Data format specifies the Content-type head by the coal type. The first server
The specified resource must be created before the 201 status code is returned. If the behavior is not executed immediately, the server should return 202.
202 Accepted
The request has been accepted for processing. But the processing did not complete. The request might or may not have been followed because the processing might have been rejected during the actual execution.
203 non-authoritative Information
204 No Content
The server has accepted the request and does not need to return the Entity data, and may need to return the update information. The loopback may contain new or updated information that is rendered by entity-headers.
205 Reset Content
The server has accepted the request and the user agent should reset the document view.
206 Partial Content
The server has accepted the part of the request GET request resource. The request must contain a range header information to indicate that the fetch scope may have to contain the If-range header information to form the request condition.
Redirection
==================================
Multiple Choices
The request resource conforms to any one of the rendering methods.
301 Moved Permanently
The requested resource has been assigned a new URI.
302 Found
A temporary file that requests resources through different URIs.
303 See other
304 Not Modified
If the client has completed a conditional request and the request is allowed, but the document does not change, the server should return a 304 status code. 304
The status code must not contain the information body, which usually ends with the first empty line after a header field.
305 Use Proxy
The requested resource must be accessed through the proxy (specified by the Location field). The location resource gives the URI of the proxy.
306 Unused
307 Temporary Redirect
Client Error
=====================
Request
The server cannot understand the request information because of the incorrect syntax.
401 Unauthorized
If the request requires user authentication. The loopback should contain a Www-authenticate header field that indicates the permission to request the resource.
402 Payment Required
Reserved status code
403 Forbidden
The server accepts the request, but is denied processing.
404 Not Found
The server has found any resources that match Request-uri.
405 Menthod not allowed
Request-line The requested method is not allowed through the specified URI.
406 Not acceptable
407 Proxy Authentication Required
408 Reqeust Timeout
The customer service side did not submit any requests within the server waiting time for processing.
409 Conflict
410 Gone
411 Length Required
The server refused to accept the request without defining the Content-length field.
412 Precondition Failed
413 Request Entity Too Large
The server refuses to process the request because the request data exceeds the scope that the server can handle. The server may close the current connection to prevent the client from continuing the request.
414 Request-uri Too Long
Server denial of service current request because the length of the URI exceeds the resolution range of the server.
415 Unsupported Media Type
The server denies the service the current request because the request data format is not supported by the requested resource.
416 Request Range Not satisfialbe
417 Expectation Failed
Server Error
===================================
Internal Server Error
Server encounters an exception that prevents execution of the current request
501 Not implemented
The server does not have a corresponding execution action to complete the current request.
502 Bad Gateway
503 Service Unavailable
The server cannot process the current request because of a temporary file overload.
504 Gateway Timeout
505 Http Version not supported

-------------------------------------------------

http://status-code.com/

    • Continue
    • 101 Switching protocols
    • 102 Processing
    • OK
    • 201 Created
    • 202 Accepted
    • 203 non-authoritative Information
    • 204 No Content
    • 205 Reset Content
    • 206 Partial Content
    • 207 Multi-Status
    • 226 IM used
    • Multiple Choices
    • 301 Moved Permanently
    • 302 Found
    • 303 See other
    • 304 Not Modified
    • 305 Use Proxy
    • 306 (Unused)
    • 307 Temporary Redirect
    • Request
    • 401 Unauthorized
    • 402 Payment Required
    • 403 Forbidden
    • 404 Not Found
    • 405 Method not allowed
    • 406 Not acceptable
    • 407 Proxy Authentication Required
    • 408 Request Timeout
    • 409 Conflict
    • 410 Gone
    • 411 Length Required
    • 412 Precondition Failed
    • 413 Request Entity Too Large
    • 414 Request-uri Too Long
    • 415 Unsupported Media Type
    • 416 Requested Range not satisfiable
    • 417 Expectation Failed
    • 418 I ' m a teapot
    • 422 Unprocessable Entity
    • 423 Locked
    • 424 Failed Dependency
    • 425 (Unordered Collection)
    • 426 Upgrade Required
    • Internal Server Error
    • 501 Not implemented
    • 502 Bad Gateway
    • 503 Service Unavailable
    • 504 Gateway Timeout
    • 505 HTTP Version not supported
    • 506 Variant Also negotiates
    • 507 Insufficient Storage
    • 510 Not Extended
    • The response value provided by Java HttpURLConnection is

      /**
      * HTTP Status-code 200:ok.
      */
      public static final int HTTP_OK = 200;

      /**
      * HTTP Status-code 201:created.
      */
      public static final int http_created = 201;

      /**
      * HTTP Status-code 202:accepted.
      */
      public static final int http_accepted = 202;

      /**
      * HTTP Status-code 203:non-authoritative information.
      */
      public static final int http_not_authoritative = 203;

      /**
      * HTTP Status-code 204:no Content.
      */
      public static final int http_no_content = 204;

      /**
      * HTTP Status-code 205:reset Content.
      */
      public static final int http_reset = 205;

      /**
      * HTTP Status-code 206:partial Content.
      */
      public static final int http_partial = 206;

      /* 3xx:relocation/redirect */

      /**
      * HTTP Status-code 300:multiple Choices.
      */
      public static final int http_mult_choice = 300;

      /**
      * HTTP Status-code 301:moved permanently.
      */
      public static final int http_moved_perm = 301;

      /**
      * HTTP Status-code 302:temporary Redirect.
      */
      public static final int http_moved_temp = 302;
      /**
      * HTTP Status-code 303:see Other.
      */
      public static final int http_see_other = 303;

      /**
      * HTTP Status-code 304:not Modified.
      */
      public static final int http_not_modified = 304;

      /**
      * HTTP Status-code 305:use Proxy.
      */
      public static final int http_use_proxy = 305;

      /* 4xx:client Error */

      /**
      * HTTP Status-code 400:bad Request.
      */
      public static final int http_bad_request = 400;

      /**
      * HTTP Status-code 401:unauthorized.
      */
      public static final int http_unauthorized = 401;

      /**
      * HTTP Status-code 402:payment Required.
      */
      public static final int http_payment_required = 402;

      /**
      * HTTP Status-code 403:forbidden.
      */
      public static final int http_forbidden = 403;

      /**
      * HTTP Status-code 404:not Found.
      */
      public static final int http_not_found = 404;

      /**
      * HTTP Status-code 405:method not allowed.
      */
      public static final int http_bad_method = 405;

      /**
      * HTTP status-code 406:not acceptable.
      */
      public static final int http_not_acceptable = 406;

      /**
      * HTTP status-code 407:proxy authentication Required.
      */
      public static final int http_proxy_auth = 407;

      /**
      * HTTP Status-code 408:request time-out.
      */
      public static final int http_client_timeout = 408;

      /**
      * HTTP Status-code 409:conflict.
      */
      public static final int http_conflict = 409;

      /**
      * HTTP Status-code 410:gone.
      */
      public static final int http_gone = 410;

      /**
      * HTTP Status-code 411:length Required.
      */
      public static final int http_length_required = 411;

      /**
      * HTTP Status-code 412:precondition Failed.
      */
      public static final int http_precon_failed = 412;

      /**
      * HTTP status-code 413:request Entity Too Large.
      */
      public static final int http_entity_too_large = 413;

      /**
      * HTTP status-code 414:request-uri Too Large.
      */
      public static final int http_req_too_long = 414;

      /**
      * HTTP status-code 415:unsupported Media Type.
      */
      public static final int http_unsupported_type = 415;
      /* 5xx:server Error */

      /**
      * HTTP status-code 500:internal Server Error.
      * @deprecated It is misplaced and shouldn ' t has existed.
      */
      @Deprecated
      public static final int http_server_error = 500;

      /**
      * HTTP status-code 500:internal Server Error.
      */
      public static final int http_internal_error = 500;

      /**
      * HTTP Status-code 501:not implemented.
      */
      public static final int http_not_implemented = 501;

      /**
      * HTTP Status-code 502:bad Gateway.
      */
      public static final int http_bad_gateway = 502;

      /**
      * HTTP status-code 503:service unavailable.
      */
      public static final int http_unavailable = 503;

      /**
      * HTTP Status-code 504:gateway Timeout.
      */
      public static final int http_gateway_timeout = 504;

      /**
      * HTTP Status-code 505:http Version not supported.
      */
      public static final int http_version = 505;

HTTP response Status Code

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.