@@ -295,13 +295,16 @@ module HTTP
295
295
case status_code
296
296
when 100 then " Continue"
297
297
when 101 then " Switching Protocols"
298
+ when 102 then " Processing" # RFC 2518 (WebDAV)
298
299
when 200 then " OK"
299
300
when 201 then " Created"
300
301
when 202 then " Accepted"
301
302
when 203 then " Non-Authoritative Information"
302
303
when 204 then " No Content"
303
304
when 205 then " Reset Content"
304
305
when 206 then " Partial Content"
306
+ when 207 then " Multi-Status" # RFC 2518 (WebDAV)
307
+ when 208 then " Already Reported" # RFC 5842
305
308
when 226 then " IM Used"
306
309
when 300 then " Multiple Choices"
307
310
when 301 then " Moved Permanently"
@@ -310,7 +313,7 @@ module HTTP
310
313
when 304 then " Not Modified"
311
314
when 305 then " Use Proxy"
312
315
when 307 then " Temporary Redirect"
313
- when 308 then " Permanent Redirect"
316
+ when 308 then " Permanent Redirect" # RFC 7238
314
317
when 400 then " Bad Request"
315
318
when 401 then " Unauthorized"
316
319
when 402 then " Payment Required"
@@ -329,21 +332,28 @@ module HTTP
329
332
when 415 then " Unsupported Media Type"
330
333
when 416 then " Requested Range Not Satisfiable"
331
334
when 417 then " Expectation Failed"
335
+ when 418 then " I'm a teapot" # RFC 2324
332
336
when 421 then " Misdirected Request"
333
- when 423 then " Locked"
334
- when 426 then " Upgrade Required"
337
+ when 422 then " Unprocessable Entity" # RFC 2518 (WebDAV)
338
+ when 423 then " Locked" # RFC 2518 (WebDAV)
339
+ when 424 then " Failed Dependency" # RFC 2518 (WebDAV)
340
+ when 426 then " Upgrade Required" # RFC 2817
335
341
when 428 then " Precondition Required"
336
342
when 429 then " Too Many Requests"
337
343
when 431 then " Request Header Fields Too Large"
344
+ when 449 then " Retry With" # unofficial Microsoft
338
345
when 451 then " Unavailable For Legal Reasons"
339
346
when 500 then " Internal Server Error"
340
347
when 501 then " Not Implemented"
341
348
when 502 then " Bad Gateway"
342
349
when 503 then " Service Unavailable"
343
350
when 504 then " Gateway Timeout"
344
351
when 505 then " HTTP Version Not Supported"
345
- when 506 then " Variant Also Negotiates"
346
- when 510 then " Not Extended"
352
+ when 506 then " Variant Also Negotiates" # RFC 2295
353
+ when 507 then " Insufficient Storage" # RFC 2518 (WebDAV)
354
+ when 509 then " Bandwidth Limit Exceeded" # unofficial
355
+ when 510 then " Not Extended" # RFC 2774
356
+ when 511 then " Network Authentication Required"
347
357
else " "
348
358
end
349
359
end
0 commit comments