@@ -77,3 +77,62 @@ var xhrHttp = (function () {
77
77
throw new Error ( 'ajax not supported in this browser' ) ;
78
78
}
79
79
} ) ( ) ;
80
+
81
+ http . STATUS_CODES = {
82
+ 100 : 'Continue' ,
83
+ 101 : 'Switching Protocols' ,
84
+ 102 : 'Processing' , // RFC 2518, obsoleted by RFC 4918
85
+ 200 : 'OK' ,
86
+ 201 : 'Created' ,
87
+ 202 : 'Accepted' ,
88
+ 203 : 'Non-Authoritative Information' ,
89
+ 204 : 'No Content' ,
90
+ 205 : 'Reset Content' ,
91
+ 206 : 'Partial Content' ,
92
+ 207 : 'Multi-Status' , // RFC 4918
93
+ 300 : 'Multiple Choices' ,
94
+ 301 : 'Moved Permanently' ,
95
+ 302 : 'Moved Temporarily' ,
96
+ 303 : 'See Other' ,
97
+ 304 : 'Not Modified' ,
98
+ 305 : 'Use Proxy' ,
99
+ 307 : 'Temporary Redirect' ,
100
+ 400 : 'Bad Request' ,
101
+ 401 : 'Unauthorized' ,
102
+ 402 : 'Payment Required' ,
103
+ 403 : 'Forbidden' ,
104
+ 404 : 'Not Found' ,
105
+ 405 : 'Method Not Allowed' ,
106
+ 406 : 'Not Acceptable' ,
107
+ 407 : 'Proxy Authentication Required' ,
108
+ 408 : 'Request Time-out' ,
109
+ 409 : 'Conflict' ,
110
+ 410 : 'Gone' ,
111
+ 411 : 'Length Required' ,
112
+ 412 : 'Precondition Failed' ,
113
+ 413 : 'Request Entity Too Large' ,
114
+ 414 : 'Request-URI Too Large' ,
115
+ 415 : 'Unsupported Media Type' ,
116
+ 416 : 'Requested Range Not Satisfiable' ,
117
+ 417 : 'Expectation Failed' ,
118
+ 418 : 'I\'m a teapot' , // RFC 2324
119
+ 422 : 'Unprocessable Entity' , // RFC 4918
120
+ 423 : 'Locked' , // RFC 4918
121
+ 424 : 'Failed Dependency' , // RFC 4918
122
+ 425 : 'Unordered Collection' , // RFC 4918
123
+ 426 : 'Upgrade Required' , // RFC 2817
124
+ 428 : 'Precondition Required' , // RFC 6585
125
+ 429 : 'Too Many Requests' , // RFC 6585
126
+ 431 : 'Request Header Fields Too Large' , // RFC 6585
127
+ 500 : 'Internal Server Error' ,
128
+ 501 : 'Not Implemented' ,
129
+ 502 : 'Bad Gateway' ,
130
+ 503 : 'Service Unavailable' ,
131
+ 504 : 'Gateway Time-out' ,
132
+ 505 : 'HTTP Version Not Supported' ,
133
+ 506 : 'Variant Also Negotiates' , // RFC 2295
134
+ 507 : 'Insufficient Storage' , // RFC 4918
135
+ 509 : 'Bandwidth Limit Exceeded' ,
136
+ 510 : 'Not Extended' , // RFC 2774
137
+ 511 : 'Network Authentication Required' // RFC 6585
138
+ } ;
0 commit comments