The HTTP status code is a 3-bit numeric code that represents the HTTP response status of the Web server. It is defined by the RFC 2616 specification and is extended by RFC 2518, RFC 2817, RFC 2295, RFC 2774, RFC 4918, and other specifications.
1: This type of status code indicates that the request has been accepted and needs to continue processing, such a response is a temporary response, contains only the status line and some optional response header information, and ends with a blank line, because the http/1.0 protocol does not define any 1XX status code, so unless under some experimental conditions, The server prohibits sending 1xx to such clients accordingly.
2: This type of status code indicates that the server is accepted and understood successfully;
200=> succeeds, the requested response header or data body will be returned with this response
The 201=> request has been implemented, and a new resource has been established according to the requirement of the request, and its URL has been returned with the location header information.
The 202=> server has accepted the request, and the order has not been processed.
203
The 204=> server successfully processed the request, but did not need to return any entity content
3 First: This type of status code represents the client taking further action to complete the request, usually these status codes are used for redirection, and subsequent request addresses are indicated in the location domain of the response;
300=>
301=> Request resource has been permanently moved to a new location
302=> Request resources temporarily respond to requests from different URLs
4 The Beginning: Error
5: This type of status code indicates that the server has an error or an abnormal state in the process of processing the request, or that the server is aware that the processing of the request cannot be completed with the current hardware and software resources.
500=> is generally a code error
502=> General Web Service configuration Error
503=> General Web Service configuration Error
When you exit successfully using Beego to jump to the login page:
this. Redirect ("/login.html"301)
This jump in the jump after the second time did not enter the logout.html, jump directly to the login.html, that is, logout.html address was 301 jump login.html permanent replacement;
So I modified 301 to 302, which represents a temporary request
HTTP status Code