Ajax status description

Source: Internet
Author: User

 

The readystate attribute has five possible values:
 
0: (not initialized) The send method has not been called
1: (loading) The send method has been called and the request is still being processed.
2: (loaded) The send method has been completed, and the entire response has been received
3: The response is being parsed.
4: (completed) the response has been resolved and is ready for further processing.

Description of the Status attribute of the object XMLHttpRequest: 0 **: not started 1 **: request received, continue processing 2 **: Operation received successfully, analysis, and acceptance 3 **: this request must be further processed. 4 **: The request contains an error syntax or cannot be completed. 5 **: the server fails to execute a fully valid request. 100-the customer must continue to send the request (continue) 101 -- the client requests the server to convert the HTTP protocol version (switching protocols) 200 according to the request -- transaction success (OK) 201 -- prompt to know the URL of the new file (created) 202 -- accept and process, but not complete (accepted) 203 -- the returned information is unknown or incomplete (non-authoritative information) 204 -- the request is received, but the returned information is blank (NO content) 205 -- when the server completes the request, the user agent must reset the currently browsed file (reset content) 206 -- the server has completed some users' GET requests (partial content) 300 -- requested resources can be obtained in multiple places (Multiple choices) 301 -- moved permanently 302 -- request data (found) found at other addresses) 303 -- it is recommended that the customer access other URLs or access methods (see other) 304 -- the client has executed get, but the file has not changed (not modified) 305 -- the requested resource must be obtained from the address specified by the server (use proxy) 306 -- the code used in the previous version of HTTP, in the current version, 307 is no longer used -- temporary redirect 400 -- the requested resource is temporarily deleted (temporary redirect) 401 -- the request is incorrect, such as a syntax error (Bad request) -- The request fails to be authorized (unauthorized) 402 -- retain valid chargeto header response (payment required) 403 -- the request is not allowed (the resource is unavailable due to the permission setting of the file or directory on the server) (Forbidden) 404 -- no file, query, or URL found (the specified resource is not found) 405 -- the method defined by the user in the request-line field is not allowed (method not allowed) 406 -- the requested resource is not accessible (not acceptable) 407 Based on the accept drag sent by the user -- similar to 401, the user must first be authorized on the proxy server (proxy authentication required) 408 -- the client has not completed the request (request timeout) 409 within the user's specified hunger time -- the request cannot be completed due to the current resource status (conflict) 410 -- this resource no longer exists on the server and no further reference address (gone) 411 -- the server rejects the User-Defined Content-Length attribute request (length required) 412 -- one or more request header fields are incorrect in the current request (precondition failed) 413 -- the requested resource is larger than the size allowed by the server (Request Entity too large) 414 -- the requested resource URL is longer than the length allowed by the server (request-URI Too long) 415 -- the requested resource does not support the request project format (unsupported media type) 416 -- The request contains the range request header field. There is no range indication value in the current request resource range, and the request does not contain the IF-range request header field (requested range not suitable) 417 -- the server does not meet the expectation specified by the request's response CT header field. If it is a proxy server, it may be that the next-level server cannot meet the request (expectation failed) 500 -- the server generates an internal error (internal server error) 501 -- the server does not support the requested function (not implemented) 502 -- the server is temporarily unavailable, sometimes to prevent system overload (Bad Gateway) 503 -- server overload or service suspension (unavailable) 504 -- gateway overload. The server uses another gateway or service to respond to the user. The waiting time is long (gateway timeout) 505 -- the server does not support or reject the HTTP Version specified in the request header (HTTP Version Not Supported) 12029 -- an unknown error occurred while processing the request on the server. the status code returned from the server was: 12029 (cause: the network is disconnected. refresh the page)

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.