The status code and prompt information returned by the server to the user is usually the following (the HTTP verb corresponding to the status code in square brackets)

Source: Internet
Author: User

    • $ OK-[GET]: The server successfully returns the data requested by the user, the operation is idempotent (idempotent).
    • 201 CREATED-[Post/put/patch]: User new or modified data succeeded.
    • 202 Accepted-[*]: Indicates that a request has entered the background queue (asynchronous task)
    • 204 NO CONTENT-[delete]: User deleted data successfully.
    • INVALID request-[Post/put/patch]: The user has made an error, the server does not make a new or modified data operation, the operation is idempotent.
    • 401 Unauthorized-[*]: Indicates that the user does not have permissions (token, user name, password error).
    • 403 Forbidden-[*] indicates that the user is authorized (as opposed to a 401 error), but access is forbidden.
    • 404 Not FOUND-[*]: The user makes a request against a nonexistent record, the server does not operate, the operation is idempotent.
    • 406 Not acceptable-[GET]: User requested format is not available (such as user request JSON format, but only XML format).
    • 410 Gone-[get]: The resource requested by the user is permanently deleted and will no longer be available.
    • 422 unprocesable Entity-[Post/put/patch] A validation error occurs when an object is created.
    • $ INTERNAL Server Error-[*]: The server is having errors and the user will not be able to determine if the request was successful.

The status code and prompt information returned by the server to the user, usually with the following (the HTTP verb corresponding to the status code in square brackets)

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.