http状态码

   一.消息:

  1.  100 Continue
  2. 101 Switching Protocols
  3. 102 Processing

二.  成功

          200 ok

三 重定向

  1.  301 Moved Permanently(永久重定向)
  2. 302 Move temporarily(临时重定向)

四 客户端

  

  1.  400 Bad Request
  2. ▪ 401 Unauthorized(请求未经授权,这个状态代码必须和WWW-Authenticate)
  3. ▪ 402 Payment Required(客户端请求有语法错误,不能被服务器所理解)
  4. ▪ 403 Forbidden(服务器收到请求,但是拒绝提供服务)
  5. ▪ 404 Not Found(请求资源不存在)

五   服务器端

   

  1. 500 Internal Server Error(服务器发生不可预期的错误)
  2. ▪ 501 Not Implemented
  3. ▪ 502 Bad Gateway(请求未完成,服务器从上游收到一个无效的响应)
  4. ▪ 503 Service Unavailable(服务器当前不能处理客户端的请求,一段时间后可能恢复正常)
原文地址:https://www.cnblogs.com/chaihtml/p/10383714.html