Http response status code and response status code

Source: Internet
Author: User
Tags unsupported

Http response status code and response status code

From: http://hi.baidu.com/starsecond/blog/item/de75458a3cb1b51ac9fc7a6a.html

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

100 Continue
Indicates that the client should continue the request. Send back is used to notify the client that the request has been received and has not been rejected by the server.
The client should continue to send the remaining request data or the request has been completed, or ignore the return data. The server must send
The final response is after the request.
101 Switching Protocols
The server changes the application protocol of the current connection through the Upgrade header according to the client request. The server immediately changes the protocol according to the Upgrade header.
When 101 is sent back to an empty row.
Successful
======================================
200 OK
Instruct the customer service to successfully receive, parse, and accept the request.
201 Created
The request has been completed and a new returned resource is created. The created resource may be a URI resource, which is usually specified in the Location header. Delivery should contain an object data
It also includes resource features and location. You can use the user or user agent to select an appropriate method. The object data format is specified by the coal type, that is, the content-type header. Initial Server
The specified resource must be created before the 201 status code is returned. If the behavior is not immediately executed, the server should return 202.
202 Accepted
The request has been accepted for processing. However, the process is not completed. The request may or may not be followed because the request may be rejected during actual execution.
203 Non-Authoritative Information
204 No Content
The server has accepted the request and does not need to return the Entity Data. It may need to return the update information. The delivery may contain new or updated information presented 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 part of the resource that the server has accepted the GET request. The request must contain a Range header to indicate that the obtained Range may contain If-Range header information to establish a request condition.
Redirection
========================================
300 Multiple Choices
The requested resource meets any rendering method.
301 Moved Permanently
The requested resource has been assigned a new URI.
302 Found
Request temporary files of resources through different Uris.
303 See Other
304 Not Modified
If the client has completed a qualified request and the request is allowed, but this document has not changed, the server should return a 304 status code. 304
The status code must not contain the information body. Therefore, it usually ends with the first blank line after a header field.
305 Use Proxy
The requested resource must be accessed through a proxy (specified by the Location field. The Location Resource provides the proxy URI.
306 Unused
307 Temporary Redirect
Client Error
==================================
400 Bad Request
The server cannot understand the request information due to incorrect syntax.
401 Unauthorized
If the request requires user authentication. The return request should contain a WWW-Authenticate header field to specify the permission to request resources.
402 Payment Required
Reserved status code
403 Forbidden
The server rejects the request.
404 Not Found
The server has found any resource that matches the Request-URI.
405 Menthod Not Allowed
The Request-Line method is not allowed to use the specified URI.
406 Not Acceptable
407 Proxy Authentication Required
408 Reqeust Timeout
The client does not submit any requests within the waiting time of the server.
409 Conflict
410 Gone
411 Length Required
The server rejects the request if the Content-Length field is not defined.
412 Precondition Failed
413 Request Entity Too Large
The server rejects the request because the request data exceeds the scope that the server can process. The server may close the current connection to prevent the client from continuing the request.
414 Request-URI Too Long
The server rejects the current request because the URI length exceeds the resolution range of the server.
415 Unsupported Media Type
The server rejects the service because the request data format is not supported by the requested resource.
416 Request Range Not Satisfialbe
417 Expectation Failed
Server Error
==========================================
500 Internal Server Error
The server encountered an exception and blocked the execution of the current request.
501 Not Implemented
The server does not have an action to complete the current request.
502 Bad Gateway
503 Service Unavailable
The server cannot process the current request because the temporary file is overloaded.
504 Gateway Timeout
505 Http Version Not Supported

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

Http://status-code.com/

    • 100 Continue
    • 101 Switching Protocols
    • 102 Processing
    • 200 OK
    • 201 Created
    • 202 Accepted
    • 203 Non-Authoritative Information
    • 204 No Content
    • 205 Reset Content
    • 206 Partial Content
    • 207 Multi-Status
    • 226 IM Used
    • 300 Multiple Choices
    • 301 Moved Permanently
    • 302 Found
    • 303 See Other
    • 304 Not Modified
    • 305 Use Proxy
    • 306 (Unused)
    • 307 Temporary Redirect
    • 400 Bad 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
    • 500 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 finals int HTTP_CREATED = 201;

      /**
      * HTTP Status-Code 202: Accepted.
      */
      Public static final int http_access Ted = 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_resets = 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_movable ed_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_faileds = 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 have 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;

      /**
      * Httpstatus-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;

Related Article

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.