- $ 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)