筆記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 };
相關文章
相關標籤/搜索