HTTP status code and its meaning
When writing the front-end features, it is inevitable that the backend we send the request, to get some data, this time the back-end returns a response status code for us, to know this status code can help us better understand the server data returned by the state, the following are some of the common I read data query to status code information for your reference:
1XX: indicates the information status code
100 the Continue to Continue
Generally, when sending a POST request, the server sends an acknowledgement message after the HTTP header is sent, and then sends specific parameter information
2XX: success status code
200
OK
Normal return message
201
Created
The request succeeds and the server creates a new resource
202
Accepted
The server has accepted the request but has not yet processed it
3XX: redirection
301
Moved Permanently
The requested page has been permanently moved to the new location.
302
Found
Temporary redirection.
303
See Other
Temporary redirects, and always requests new URIs using GET.
304
Not Modified
The requested page has not been modified since the last request.
4XX: Client error
400
Bad Request
The server does not understand the format of the request, and the client should not attempt to initiate the request again with the same content.
401
Unauthorized
Request is not authorized.
403
Forbidden
Access is prohibited.
404
Not Found
Could not find resource how to match URI.
5XX: Server error
500
Internal Server Error
The most common server-side errors.
503
Service Unavailable
The server side is temporarily unable to process the request (possibly due to overload or maintenance).