笔记78 HttpStatus

 1 HttpStatus = {  
 2         //Informational 1xx  信息
 3         '100' : 'Continue',  //继续
 4         '101' : 'Switching Protocols',  //交换协议
 5  
 6         //Successful 2xx  成功
 7         '200' : 'OK',  //OK
 8         '201' : 'Created',  //创建
 9         '202' : 'Accepted',  //已接受
10         '203' : 'Non-Authoritative Information',  //非权威信息
11         '204' : 'No Content',  //没有内容
12         '205' : 'Reset Content',  //重置内容
13         '206' : 'Partial Content',  //部分内容
14  
15         //Redirection 3xx  重定向
16         '300' : 'Multiple Choices',  //多种选择
17         '301' : 'Moved Permanently',  //永久移动
18         '302' : 'Found',  //找到
19         '303' : 'See Other',  //参见其他
20         '304' : 'Not Modified',  //未修改
21         '305' : 'Use Proxy',  //使用代理
22         '306' : 'Unused',  //未使用
23         '307' : 'Temporary Redirect',  //暂时重定向
24  
25         //Client Error 4xx  客户端错误
26         '400' : 'Bad Request',  //错误的请求
27         '401' : 'Unauthorized',  //未经授权
28         '402' : 'Payment Required',  //付费请求
29         '403' : 'Forbidden',  //禁止
30         '404' : 'Not Found',  //没有找到
31         '405' : 'Method Not Allowed',  //方法不允许
32         '406' : 'Not Acceptable',  //不可接受
33         '407' : 'Proxy Authentication Required',  //需要代理身份验证
34         '408' : 'Request Timeout',  //请求超时
35         '409' : 'Conflict',  //指令冲突
36         '410' : 'Gone',  //文档永久地离开了指定的位置
37         '411' : 'Length Required',  //需要Content-Length头请求
38         '412' : 'Precondition Failed',  //前提条件失败
39         '413' : 'Request Entity Too Large',  //请求实体太大
40         '414' : 'Request-URI Too Long',  //请求URI太长
41         '415' : 'Unsupported Media Type',  //不支持的媒体类型
42         '416' : 'Requested Range Not Satisfiable',  //请求的范围不可满足
43         '417' : 'Expectation Failed',  //期望失败
44  
45         //Server Error 5xx  服务器错误
46         '500' : 'Internal Server Error',  //内部服务器错误
47         '501' : 'Not Implemented',  //未实现
48         '502' : 'Bad Gateway',  //错误的网关
49         '503' : 'Service Unavailable',  //服务不可用
50         '504' : 'Gateway Timeout',  //网关超时
51         '505' : 'HTTP Version Not Supported'  //HTTP版本不支持
52 };
原文地址:https://www.cnblogs.com/lyj-gyq/p/9467775.html