summaryrefslogtreecommitdiff
path: root/lib/net/http.rb
diff options
context:
space:
mode:
author180909 <734461790@qq.com>2021-10-15 16:42:58 +0800
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-10-30 10:16:17 +0900
commit6c812c6f4e882d3a12ec0a9fabae4d6b86ef729f (patch)
tree130c577904644a72f5b9479280852d669eb17989 /lib/net/http.rb
parent2898805535104c330e1e5c64c8065a108f1f2895 (diff)
add missing http response code in doc
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4970
Diffstat (limited to 'lib/net/http.rb')
-rw-r--r--lib/net/http.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/net/http.rb b/lib/net/http.rb
index 61c7a77491..aaf3e3104d 100644
--- a/lib/net/http.rb
+++ b/lib/net/http.rb
@@ -327,6 +327,8 @@ module Net #:nodoc:
# HTTPInformation:: 1xx
# HTTPContinue:: 100
# HTTPSwitchProtocol:: 101
+ # HTTPProcessing:: 102
+ # HTTPEarlyHints:: 103
# HTTPSuccess:: 2xx
# HTTPOK:: 200
# HTTPCreated:: 201
@@ -336,6 +338,7 @@ module Net #:nodoc:
# HTTPResetContent:: 205
# HTTPPartialContent:: 206
# HTTPMultiStatus:: 207
+ # HTTPAlreadyReported:: 208
# HTTPIMUsed:: 226
# HTTPRedirection:: 3xx
# HTTPMultipleChoices:: 300
@@ -345,6 +348,7 @@ module Net #:nodoc:
# HTTPNotModified:: 304
# HTTPUseProxy:: 305
# HTTPTemporaryRedirect:: 307
+ # HTTPPermanentRedirect:: 308
# HTTPClientError:: 4xx
# HTTPBadRequest:: 400
# HTTPUnauthorized:: 401
@@ -364,6 +368,7 @@ module Net #:nodoc:
# HTTPUnsupportedMediaType:: 415
# HTTPRequestedRangeNotSatisfiable:: 416
# HTTPExpectationFailed:: 417
+ # HTTPMisdirectedRequest:: 421
# HTTPUnprocessableEntity:: 422
# HTTPLocked:: 423
# HTTPFailedDependency:: 424
@@ -379,7 +384,10 @@ module Net #:nodoc:
# 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