A status code is simply the result of an HTTP request returned by the server. Let’s get a general idea of the status code.

The return value category The reason the phrase
1XX Information status code The received request is being processed
2XX Success Request processing completed and successful
3XX redirect Additional action is required to complete the request
4XX Client error The server can’t handle the request. It’s usually a client error
5XX Server error Server processing error
  • 200 Normal Handling
  • 204 No Content No resources can be returned.
  • 206 Partial Content Processing succeeded and Partial resources were returned.
  • 301 Moved Permanly Permanently redirects updated bookmarks
  • 302 Found Temporary redirection Does not update bookmarks but saves them
  • 303 See Other Indicates that the requested resource has another URI
  • 304 Not Modified Indicates that the client sends a request with a condition. The server allows access to the resource but the condition is Not met. 304 is returned with no principal.
  • 307 Temporary Redirect Temporary redirection
  • 400 Bad Request The Request fails
  • 401 Unauthorized
  • 403 Forbidden Deny access to that resource
  • 404 Not Found No resource
  • 500 Server error
  • 503 Cannot process the request
  • In fact, the most important thing to learn the status code is to know why the problem arises and what the possible situation is, that is the key.

The long road ahead is still a person struggling to learn? Add the wechat official account Moomoocode quickly, there are many friends waiting for you. Like everybody kiss a thumbs up bai ~