HTTP All in One

97 阅读1分钟

概述

HTTP All in One 准备记录积累的HTTP常用知识,因为比较琐碎容易遗忘,所以集中在一个地方存放。

细节

常用HTTP退出码

2XX

  • 200 OK
  • 204 No Content。和200基本一样,但是没有body
  • 206 Partial Content。分块或者断点续传的基础,带有Content-Range头

3XX

  • 301 Moved Permanently
  • 302 Found。资源还在,但是换了uri
  • 304 Not Modified。

4XX

  • 400 Bad Request
  • 403 Forbidden
  • 404 Not Found

5XX

  • 500 Internal Server Error
  • 501 Not Implement
  • 502 Bad Gateway
  • 503 Service Unavailable