Skip to content

Commit 1c8151a

Browse files
committed
Adding links to references
1 parent 7681151 commit 1c8151a

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

lib/net/http/responses.rb

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ class HTTPSwitchProtocol < HTTPInformation
117117
#
118118
# References:
119119
#
120+
# - {RFC 2518}[https://www.rfc-editor.org/rfc/rfc2518#section-10.1].
120121
# - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#102].
121122
#
122123
class HTTPProcessing < HTTPInformation
@@ -132,6 +133,7 @@ class HTTPProcessing < HTTPInformation
132133
# References:
133134
#
134135
# - {Mozilla}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/103].
136+
# - {RFC 8297}[https://www.rfc-editor.org/rfc/rfc8297.html#section-2].
135137
# - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#103].
136138
#
137139
class HTTPEarlyHints < HTTPInformation
@@ -255,6 +257,7 @@ class HTTPPartialContent < HTTPSuccess
255257
#
256258
# References:
257259
#
260+
# - {RFC 4818}[https://www.rfc-editor.org/rfc/rfc4918#section-11.1].
258261
# - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#207].
259262
#
260263
class HTTPMultiStatus < HTTPSuccess
@@ -271,6 +274,7 @@ class HTTPMultiStatus < HTTPSuccess
271274
#
272275
# References:
273276
#
277+
# - {RFC 5842}[https://www.rfc-editor.org/rfc/rfc5842.html#section-7.1].
274278
# - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#208].
275279
#
276280
class HTTPAlreadyReported < HTTPSuccess
@@ -285,6 +289,7 @@ class HTTPAlreadyReported < HTTPSuccess
285289
#
286290
# References:
287291
#
292+
# - {RFC 3229}[https://www.rfc-editor.org/rfc/rfc3229.html#section-10.4.1].
288293
# - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#226].
289294
#
290295
class HTTPIMUsed < HTTPSuccess
@@ -710,6 +715,7 @@ class HTTPUnprocessableEntity < HTTPClientError
710715
#
711716
# References:
712717
#
718+
# - {RFC 4918}[https://www.rfc-editor.org/rfc/rfc4918#section-11.3].
713719
# - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#423].
714720
#
715721
class HTTPLocked < HTTPClientError
@@ -723,6 +729,7 @@ class HTTPLocked < HTTPClientError
723729
#
724730
# References:
725731
#
732+
# - {RFC 4918}[https://www.rfc-editor.org/rfc/rfc4918#section-11.4].
726733
# - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#424].
727734
#
728735
class HTTPFailedDependency < HTTPClientError
@@ -753,6 +760,7 @@ class HTTPUpgradeRequired < HTTPClientError
753760
# References:
754761
#
755762
# - {Mozilla}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/428].
763+
# - {RFC 6585}[https://www.rfc-editor.org/rfc/rfc6585#section-3].
756764
# - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#428].
757765
#
758766
class HTTPPreconditionRequired < HTTPClientError
@@ -766,6 +774,7 @@ class HTTPPreconditionRequired < HTTPClientError
766774
# References:
767775
#
768776
# - {Mozilla}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429].
777+
# - {RFC 6585}[https://www.rfc-editor.org/rfc/rfc6585#section-4].
769778
# - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#429].
770779
#
771780
class HTTPTooManyRequests < HTTPClientError
@@ -780,6 +789,7 @@ class HTTPTooManyRequests < HTTPClientError
780789
# References:
781790
#
782791
# - {Mozilla}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/431].
792+
# - {RFC 6585}[https://www.rfc-editor.org/rfc/rfc6585#section-5].
783793
# - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#431].
784794
#
785795
class HTTPRequestHeaderFieldsTooLarge < HTTPClientError
@@ -794,6 +804,7 @@ class HTTPRequestHeaderFieldsTooLarge < HTTPClientError
794804
# References:
795805
#
796806
# - {Mozilla}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/451].
807+
# - {RFC 7725}[https://www.rfc-editor.org/rfc/rfc7725.html#section-3].
797808
# - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#451].
798809
#
799810
class HTTPUnavailableForLegalReasons < HTTPClientError
@@ -900,6 +911,7 @@ class HTTPVersionNotSupported < HTTPServerError
900911
# References:
901912
#
902913
# - {Mozilla}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/506].
914+
# - {RFC 2295}[https://www.rfc-editor.org/rfc/rfc2295#section-8.1].
903915
# - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#506].
904916
#
905917
class HTTPVariantAlsoNegotiates < HTTPServerError
@@ -913,6 +925,7 @@ class HTTPVariantAlsoNegotiates < HTTPServerError
913925
# References:
914926
#
915927
# - {Mozilla}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/507].
928+
# - {RFC 4918}[https://www.rfc-editor.org/rfc/rfc4918#section-11.5].
916929
# - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#507].
917930
#
918931
class HTTPInsufficientStorage < HTTPServerError
@@ -926,6 +939,7 @@ class HTTPInsufficientStorage < HTTPServerError
926939
# References:
927940
#
928941
# - {Mozilla}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/508].
942+
# - {RFC 5942}[https://www.rfc-editor.org/rfc/rfc5842.html#section-7.2].
929943
# - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#508].
930944
#
931945
class HTTPLoopDetected < HTTPServerError
@@ -940,6 +954,7 @@ class HTTPLoopDetected < HTTPServerError
940954
# References:
941955
#
942956
# - {Mozilla}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/510].
957+
# - {RFC 2774}[https://www.rfc-editor.org/rfc/rfc2774.html#section-7].
943958
# - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#510].
944959
#
945960
class HTTPNotExtended < HTTPServerError
@@ -953,6 +968,7 @@ class HTTPNotExtended < HTTPServerError
953968
# References:
954969
#
955970
# - {Mozilla}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/511].
971+
# - {RFC 6585}[https://www.rfc-editor.org/rfc/rfc6585#section-6].
956972
# - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#511].
957973
#
958974
class HTTPNetworkAuthenticationRequired < HTTPServerError

0 commit comments

Comments
 (0)