ruby-changes:69530
From: 180909 <ko1@a...>
Date: Sat, 30 Oct 2021 10:16:27 +0900 (JST)
Subject: [ruby-changes:69530] 6c812c6f4e (master): add missing http response code in doc
https://git.ruby-lang.org/ruby.git/commit/?id=6c812c6f4e From 6c812c6f4e882d3a12ec0a9fabae4d6b86ef729f Mon Sep 17 00:00:00 2001 From: 180909 <734461790@q...> Date: Fri, 15 Oct 2021 16:42:58 +0800 Subject: add missing http response code in doc --- lib/net/http.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/net/http.rb b/lib/net/http.rb index 61c7a774919..aaf3e3104da 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -327,6 +327,8 @@ module Net #:nodoc: https://github.com/ruby/ruby/blob/trunk/lib/net/http.rb#L327 # HTTPInformation:: 1xx # HTTPContinue:: 100 # HTTPSwitchProtocol:: 101 + # HTTPProcessing:: 102 + # HTTPEarlyHints:: 103 # HTTPSuccess:: 2xx # HTTPOK:: 200 # HTTPCreated:: 201 @@ -336,6 +338,7 @@ module Net #:nodoc: https://github.com/ruby/ruby/blob/trunk/lib/net/http.rb#L338 # HTTPResetContent:: 205 # HTTPPartialContent:: 206 # HTTPMultiStatus:: 207 + # HTTPAlreadyReported:: 208 # HTTPIMUsed:: 226 # HTTPRedirection:: 3xx # HTTPMultipleChoices:: 300 @@ -345,6 +348,7 @@ module Net #:nodoc: https://github.com/ruby/ruby/blob/trunk/lib/net/http.rb#L348 # HTTPNotModified:: 304 # HTTPUseProxy:: 305 # HTTPTemporaryRedirect:: 307 + # HTTPPermanentRedirect:: 308 # HTTPClientError:: 4xx # HTTPBadRequest:: 400 # HTTPUnauthorized:: 401 @@ -364,6 +368,7 @@ module Net #:nodoc: https://github.com/ruby/ruby/blob/trunk/lib/net/http.rb#L368 # HTTPUnsupportedMediaType:: 415 # HTTPRequestedRangeNotSatisfiable:: 416 # HTTPExpectationFailed:: 417 + # HTTPMisdirectedRequest:: 421 # HTTPUnprocessableEntity:: 422 # HTTPLocked:: 423 # HTTPFailedDependency:: 424 @@ -379,7 +384,10 @@ module Net #:nodoc: https://github.com/ruby/ruby/blob/trunk/lib/net/http.rb#L384 # HTTPServiceUnavailable:: 503 # HTTPGatewayTimeOut:: 504 # HTTPVersionNotSupported:: 505 + # HTTPVariantAlsoNegotiates:: 506 # HTTPInsufficientStorage:: 507 + # HTTPLoopDetected:: 508 + # HTTPNotExtended:: 510 # HTTPNetworkAuthenticationRequired:: 511 # # There is also the Net::HTTPBadResponse exception which is raised when -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/