aboutsummaryrefslogtreecommitdiffstats
path: root/lib/net
diff options
context:
space:
mode:
Diffstat (limited to 'lib/net')
-rw-r--r--lib/net/http.rb1
-rw-r--r--lib/net/http/responses.rb5
2 files changed, 5 insertions, 1 deletions
diff --git a/lib/net/http.rb b/lib/net/http.rb
index 44c123b0e3..a1b8d691bb 100644
--- a/lib/net/http.rb
+++ b/lib/net/http.rb
@@ -334,6 +334,7 @@ module Net #:nodoc:
# HTTPResetContent:: 205
# HTTPPartialContent:: 206
# HTTPMultiStatus:: 207
+ # HTTPIMUsed:: 226
# HTTPRedirection:: 3xx
# HTTPMultipleChoices:: 300
# HTTPMovedPermanently:: 301
diff --git a/lib/net/http/responses.rb b/lib/net/http/responses.rb
index 38a5da2443..bc7642c7f3 100644
--- a/lib/net/http/responses.rb
+++ b/lib/net/http/responses.rb
@@ -57,7 +57,9 @@ class Net::HTTPMultiStatus < Net::HTTPSuccess # 207 - RFC 4918
HAS_BODY = true
end
# 208 Already Reported - RFC 5842; experimental
-# 226 IM Used - RFC 3229; no famous implementation known
+class Net::HTTPIMUsed < Net::HTTPSuccess # 226 - RFC 3229
+ HAS_BODY = true
+end
class Net::HTTPMultipleChoices < Net::HTTPRedirection # 300
HAS_BODY = true
@@ -218,6 +220,7 @@ class Net::HTTPResponse
'205' => Net::HTTPResetContent,
'206' => Net::HTTPPartialContent,
'207' => Net::HTTPMultiStatus,
+ '226' => Net::HTTPIMUsed,
'300' => Net::HTTPMultipleChoices,
'301' => Net::HTTPMovedPermanently,