Skip to content

Commit 5cf7437

Browse files
180909hsbt
authored andcommitted
add missing http response code in doc
1 parent 554b884 commit 5cf7437

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/net/http.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,8 @@ class HTTPHeaderSyntaxError < StandardError; end
327327
# HTTPInformation:: 1xx
328328
# HTTPContinue:: 100
329329
# HTTPSwitchProtocol:: 101
330+
# HTTPProcessing:: 102
331+
# HTTPEarlyHints:: 103
330332
# HTTPSuccess:: 2xx
331333
# HTTPOK:: 200
332334
# HTTPCreated:: 201
@@ -336,6 +338,7 @@ class HTTPHeaderSyntaxError < StandardError; end
336338
# HTTPResetContent:: 205
337339
# HTTPPartialContent:: 206
338340
# HTTPMultiStatus:: 207
341+
# HTTPAlreadyReported:: 208
339342
# HTTPIMUsed:: 226
340343
# HTTPRedirection:: 3xx
341344
# HTTPMultipleChoices:: 300
@@ -345,6 +348,7 @@ class HTTPHeaderSyntaxError < StandardError; end
345348
# HTTPNotModified:: 304
346349
# HTTPUseProxy:: 305
347350
# HTTPTemporaryRedirect:: 307
351+
# HTTPPermanentRedirect:: 308
348352
# HTTPClientError:: 4xx
349353
# HTTPBadRequest:: 400
350354
# HTTPUnauthorized:: 401
@@ -364,6 +368,7 @@ class HTTPHeaderSyntaxError < StandardError; end
364368
# HTTPUnsupportedMediaType:: 415
365369
# HTTPRequestedRangeNotSatisfiable:: 416
366370
# HTTPExpectationFailed:: 417
371+
# HTTPMisdirectedRequest:: 421
367372
# HTTPUnprocessableEntity:: 422
368373
# HTTPLocked:: 423
369374
# HTTPFailedDependency:: 424
@@ -379,7 +384,10 @@ class HTTPHeaderSyntaxError < StandardError; end
379384
# HTTPServiceUnavailable:: 503
380385
# HTTPGatewayTimeOut:: 504
381386
# HTTPVersionNotSupported:: 505
387+
# HTTPVariantAlsoNegotiates:: 506
382388
# HTTPInsufficientStorage:: 507
389+
# HTTPLoopDetected:: 508
390+
# HTTPNotExtended:: 510
383391
# HTTPNetworkAuthenticationRequired:: 511
384392
#
385393
# There is also the Net::HTTPBadResponse exception which is raised when

0 commit comments

Comments
 (0)