@@ -12,7 +12,11 @@ class HTTPUnknownResponse < HTTPResponse
12
12
# Parent class for informational (1xx) HTTP response classes.
13
13
#
14
14
# An informational response indicates that the request was received and understood.
15
- # See {Informational Response}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#1xx_informational_response].
15
+ #
16
+ # References:
17
+ #
18
+ # - {RFC 9110}[https://www.rfc-editor.org/rfc/rfc9110.html#status.1xx].
19
+ # - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#1xx_informational_response].
16
20
#
17
21
class HTTPInformation < HTTPResponse
18
22
HAS_BODY = false
@@ -23,7 +27,12 @@ class HTTPInformation < HTTPResponse
23
27
#
24
28
# A success response indicates the action requested by the client
25
29
# was received, understood, and accepted.
26
- # See {Success Response}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#2xx_success].
30
+ #
31
+ # References:
32
+ #
33
+ # - {RFC 9110}[https://www.rfc-editor.org/rfc/rfc9110.html#status.2xx].
34
+ # - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#2xx_success].
35
+ #
27
36
class HTTPSuccess < HTTPResponse
28
37
HAS_BODY = true
29
38
EXCEPTION_TYPE = HTTPError #
@@ -33,7 +42,12 @@ class HTTPSuccess < HTTPResponse
33
42
#
34
43
# A redirection response indicates the client must take additional action
35
44
# to complete the request.
36
- # See {Redirection Response}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#3xx_redirection].
45
+ #
46
+ # References:
47
+ #
48
+ # - {RFC 9110}[https://www.rfc-editor.org/rfc/rfc9110.html#status.3xx].
49
+ # - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#3xx_redirection].
50
+ #
37
51
class HTTPRedirection < HTTPResponse
38
52
HAS_BODY = true
39
53
EXCEPTION_TYPE = HTTPRetriableError #
@@ -42,7 +56,12 @@ class HTTPRedirection < HTTPResponse
42
56
# Parent class for client error (4xx) HTTP response classes.
43
57
#
44
58
# A client error response indicates that the client may have caused an error.
45
- # See {Client Error Response}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#4xx_client_errors].
59
+ #
60
+ # References:
61
+ #
62
+ # - {RFC 9110}[https://www.rfc-editor.org/rfc/rfc9110.html#status.4xx].
63
+ # - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#4xx_client_errors].
64
+ #
46
65
class HTTPClientError < HTTPResponse
47
66
HAS_BODY = true
48
67
EXCEPTION_TYPE = HTTPClientException #
@@ -51,16 +70,27 @@ class HTTPClientError < HTTPResponse
51
70
# Parent class for server error (5xx) HTTP response classes.
52
71
#
53
72
# A server error response indicates that the server failed to fulfill a request.
54
- # See {Server Error Response}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#5xx_server_errors].
73
+ #
74
+ # References:
75
+ #
76
+ # - {RFC 9110}[https://www.rfc-editor.org/rfc/rfc9110.html#status.5xx].
77
+ # - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#5xx_server_errors].
78
+ #
55
79
class HTTPServerError < HTTPResponse
56
80
HAS_BODY = true
57
81
EXCEPTION_TYPE = HTTPFatalError #
58
82
end
59
83
60
84
# Response class for +Continue+ responses (status code 100).
61
85
#
62
- # A +Continue+ response indicates that the server has received the request headers
63
- # See {100 Continue}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#100].
86
+ # A +Continue+ response indicates that the server has received the request headers.
87
+ #
88
+ # References:
89
+ #
90
+ # - {Mozilla}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/100].
91
+ # - {RFC 9110}[https://www.rfc-editor.org/rfc/rfc9110.html#name-100-continue].
92
+ # - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#100].
93
+ #
64
94
class HTTPContinue < HTTPInformation
65
95
HAS_BODY = false
66
96
end
@@ -69,7 +99,13 @@ class HTTPContinue < HTTPInformation
69
99
#
70
100
# The <tt>Switching Protocol<tt> response indicates that the server has received
71
101
# a request to switch protocols, and has agreed to do so.
72
- # See {101 Switching Protocols}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#101].
102
+ #
103
+ # References:
104
+ #
105
+ # - {Mozilla}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/101].
106
+ # - {RFC 9110}[https://www.rfc-editor.org/rfc/rfc9110.html#name-101-switching-protocols].
107
+ # - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#101].
108
+ #
73
109
class HTTPSwitchProtocol < HTTPInformation
74
110
HAS_BODY = false
75
111
end
@@ -78,7 +114,11 @@ class HTTPSwitchProtocol < HTTPInformation
78
114
#
79
115
# The +Processing+ response indicates that the server has received
80
116
# and is processing the request, but no response is available yet.
81
- # See {102 Processing}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#102].
117
+ #
118
+ # References:
119
+ #
120
+ # - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#102].
121
+ #
82
122
class HTTPProcessing < HTTPInformation
83
123
HAS_BODY = false
84
124
end
@@ -88,7 +128,12 @@ class HTTPProcessing < HTTPInformation
88
128
# The <tt>Early Hints</tt> indicates that the server has received
89
129
# and is processing the request, and contains certain headers;
90
130
# the final response is not available yet.
91
- # See {103 Early Hints}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#103].
131
+ #
132
+ # References:
133
+ #
134
+ # - {Mozilla}[https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/103].
135
+ # - {Wikipedia}[https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#103].
136
+ #
92
137
class HTTPEarlyHints < HTTPInformation
93
138
HAS_BODY = false
94
139
end
0 commit comments