Briefly describe the meaning of common HTTP status codes (301, 304, 401, 403)

2XX success

  • 200 OK, it means that the request from the client is processed correctly on the server
  • 204 No content, indicating that the request is successful, but the response message does not contain the body of the entity
  • 206 Partial Content, make a scope request

3XX redirect

  • 301 moved permanently, a permanent redirect, indicating that the resource has been assigned a new URL
  • 302 found, temporary redirect, indicating that the resource is temporarily assigned a new URL
  • 303 see other, indicating that there is another URL for the resource, and the GET method should be used to target the resource
  • 304 not modified, indicating that the server allows access to resources, but the request does not meet the conditions
  • 307 temporary redirect, temporary redirect, has the same meaning as 302

4XX client error

  • 400 bad request, there is a syntax error in the request message
  • 401 unauthorized, indicating that the request sent needs to have authentication information authenticated by HTTP
  • 403 forbidden, indicating that access to the requested resource was denied by the server
  • 404 not found, indicating that the requested resource was not found on the server

5XX server error

  • 500 internal sever error, indicating that an error occurred on the server side while executing the request
  • 503 service unavailable, indicating that the server is temporarily overloaded or is shutting down for maintenance and cannot process the request

 

https://www.cnblogs.com/purewhite/p/10871851.html#_label0   reproduced

Guess you like

Origin blog.csdn.net/wanghongpu9305/article/details/113251872