“This is the 14th day of my participation in the Gwen Challenge in November. Check out the details: The Last Gwen Challenge in 2021.”

preface

It is impossible to avoid dealing with status codes in work. For convenience, this article is reviewed in close-up

Status code

  • 100 Continue To continue. The client should continue with its request
  • 101 Switching Protocols Switch protocol. The server switches protocols based on client requests. You can only switch to a more advanced protocol, for example, the new version of HTTP

  • 200 OKThe request succeeded. Commonly used in GETPOSTrequest
  • 201 CreatedHas been created. The new resource was successfully requested and created
  • 202 AcceptedHas been accepted. The request has been accepted, but processing is not complete
  • 203 Non-Authoritative InformationUnauthorized information. The request succeeded. But the returnedmeta The information is not on the original server, but a copy
  • 204 No Content No content. The server processed successfully, but did not return content. You can ensure that the browser continues to display the current document without updating the web page
  • 205 Reset Content Reset the content. The server is successful, and the user end (for example, browser) should reset the document view. Use this return code to clear the browser’s form field
  • 206 Partial Content Part of the content. The server successfully processed part of itGETrequest

  • 300 Multiple Choices A variety of options. The requested resource can include multiple locations, and a list of resource characteristics and addresses can be returned for user terminal (e.g., browser) selection
  • 301 Moved PermanentlyPermanently move. The requested resource has been permanently moved to newURI, the return message will include the newURI, the browser will automatically redirect to newURI. Any future new requests should be made with new onesURIInstead of
  • 302 Found Temporary move. with301 Similar. But resources are moved only temporarily. The client should continue to use the original URI
  • 303 See OtherLook at other addresses. with 301Similar. useGETPOSTRequests to see
  • 304 Not ModifiedUnmodified. The requested resource is not modified, and the server does not return any resources when it returns this status code. Clients typically cache accessed resources by providing a header indicating that the client wants to return only resources that have been modified after a specified date
  • 305 Use ProxyUse a proxy. The requested resource must be accessed through a proxy
  • 306 Unused Has been abandoned HTTPStatus code
  • 307 Temporary RedirectTemporary redirect. with302Similar. useGET Request redirection

  • 400 Bad RequestClient request syntax error, server cannot understand
  • 401 UnauthorizedThe request requires user authentication
  • 402 Payment Required Reserved for future use
  • 403 ForbiddenThe server understands the request from the requesting client, but refuses to execute the request
  • 404 Not Found The server could not find the resource (web page) based on the client’s request. With this code, a web designer can set up a personalized page that says “the resource you requested could not be found.
  • 405 Method Not AllowedThe method in the client request is disabled
  • 406 Not AcceptableThe server could not complete the request based on the content nature of the client request
  • 407 Proxy Authentication RequiredThe request requires the identity of the broker, similar to the 401, but the requester should use the broker for authorization
  • 408 Request Time-outThe server waited for a request sent by the client for a long time and timed out. Procedure
  • 409 ConflictThe server may return this code after completing a PUT request from the client. A conflict occurred when the server processed the request
  • 410 Gone The resource requested by the client does not exist. 410 differs from 404 in that if a resource previously had a 410 code that is now permanently deleted, the site designer can specify a new location for the resource through the 301 code
  • 411 Length RequiredThe server could not process the no-band sent by the client Content-LengthRequest information for
  • 412 Precondition FailedA prerequisite error occurred when the client requested information
  • 413 Request Entity Too LargeThe request was rejected because the requested entity was too large for the server to process. To prevent continuous requests from clients, the server may close the connection. It contains one if the server is temporarily unable to process it Retry-AfterResponse information of
  • 414 Request-URI Too Large The request ofURIFor too long,URIUsually url), the server cannot process
  • 415 Unsupported Media TypeThe server could not process the media format attached to the request
  • 416 Requested range not satisfiableThe scope requested by the client is invalid
  • 417 Expectation FailedThe server cannot meet the requirementsExpect Request header information of

  • 500 Internal Server ErrorThe server had an internal error and could not complete the request
  • 501 Not Implemented The server did not support the requested functionality and could not complete the request
  • 502 Bad GatewayThe server working as a gateway or proxy received an invalid response from the remote server when attempting to execute the request
  • 503 Service UnavailableThe server is temporarily unable to process client requests due to overloading or system maintenance. The length of the delay can be included in the serverRetry-After In the header
  • 504 Gateway Time-out The server acting as a gateway or proxy did not get the request from the remote server in time
  • 505 HTTP Version not supportedThe server did not support the requestHTTP Protocol version, unable to complete processing

END

That’s all for this article. If you have any questions, please point out