Project

General

Profile

Feature #14316 ยป 0003-Update-Status-Code.patch

znz (Kazuhiro NISHIYAMA), 01/05/2018 01:51 PM

View differences:

lib/net/http/responses.rb
122 122
class Net::HTTPProxyAuthenticationRequired < Net::HTTPClientError   # 407
123 123
  HAS_BODY = true
124 124
end
125
class Net::HTTPRequestTimeOut < Net::HTTPClientError                # 408
125
class Net::HTTPRequestTimeout < Net::HTTPClientError                # 408
126 126
  HAS_BODY = true
127 127
end
128
Net::HTTPRequestTimeOut = Net::HTTPRequestTimeout
128 129
class Net::HTTPConflict < Net::HTTPClientError                      # 409
129 130
  HAS_BODY = true
130 131
end
......
137 138
class Net::HTTPPreconditionFailed < Net::HTTPClientError            # 412
138 139
  HAS_BODY = true
139 140
end
140
class Net::HTTPRequestEntityTooLarge < Net::HTTPClientError         # 413
141
class Net::HTTPPayloadTooLarge < Net::HTTPClientError               # 413
141 142
  HAS_BODY = true
142 143
end
143
class Net::HTTPRequestURITooLong < Net::HTTPClientError             # 414
144
Net::HTTPRequestEntityTooLarge = Net::HTTPPayloadTooLarge
145
class Net::HTTPURITooLong < Net::HTTPClientError                    # 414
144 146
  HAS_BODY = true
145 147
end
148
Net::HTTPRequestURITooLong = Net::HTTPURITooLong
146 149
Net::HTTPRequestURITooLarge = Net::HTTPRequestURITooLong
147 150
class Net::HTTPUnsupportedMediaType < Net::HTTPClientError          # 415
148 151
  HAS_BODY = true
149 152
end
150
class Net::HTTPRequestedRangeNotSatisfiable < Net::HTTPClientError  # 416
153
class Net::HTTPRangeNotSatisfiable < Net::HTTPClientError           # 416
151 154
  HAS_BODY = true
152 155
end
156
Net::HTTPRequestedRangeNotSatisfiable = Net::HTTPRangeNotSatisfiable
153 157
class Net::HTTPExpectationFailed < Net::HTTPClientError             # 417
154 158
  HAS_BODY = true
155 159
end
......
200 204
class Net::HTTPServiceUnavailable < Net::HTTPServerError            # 503
201 205
  HAS_BODY = true
202 206
end
203
class Net::HTTPGatewayTimeOut < Net::HTTPServerError                # 504
207
class Net::HTTPGatewayTimeout < Net::HTTPServerError                # 504
204 208
  HAS_BODY = true
205 209
end
210
Net::HTTPGatewayTimeOut = Net::HTTPGatewayTimeout
206 211
class Net::HTTPVersionNotSupported < Net::HTTPServerError           # 505
207 212
  HAS_BODY = true
208 213
end
......
265 270
    '405' => Net::HTTPMethodNotAllowed,
266 271
    '406' => Net::HTTPNotAcceptable,
267 272
    '407' => Net::HTTPProxyAuthenticationRequired,
268
    '408' => Net::HTTPRequestTimeOut,
273
    '408' => Net::HTTPRequestTimeout,
269 274
    '409' => Net::HTTPConflict,
270 275
    '410' => Net::HTTPGone,
271 276
    '411' => Net::HTTPLengthRequired,
272 277
    '412' => Net::HTTPPreconditionFailed,
273
    '413' => Net::HTTPRequestEntityTooLarge,
274
    '414' => Net::HTTPRequestURITooLong,
278
    '413' => Net::HTTPPayloadTooLarge,
279
    '414' => Net::HTTPURITooLong,
275 280
    '415' => Net::HTTPUnsupportedMediaType,
276
    '416' => Net::HTTPRequestedRangeNotSatisfiable,
281
    '416' => Net::HTTPRangeNotSatisfiable,
277 282
    '417' => Net::HTTPExpectationFailed,
278 283
    '421' => Net::HTTPMisdirectedRequest,
279 284
    '422' => Net::HTTPUnprocessableEntity,
......
289 294
    '501' => Net::HTTPNotImplemented,
290 295
    '502' => Net::HTTPBadGateway,
291 296
    '503' => Net::HTTPServiceUnavailable,
292
    '504' => Net::HTTPGatewayTimeOut,
297
    '504' => Net::HTTPGatewayTimeout,
293 298
    '505' => Net::HTTPVersionNotSupported,
294 299
    '506' => Net::HTTPVariantAlsoNegotiates,
295 300
    '507' => Net::HTTPInsufficientStorage,
......
300 305
end
301 306

  
302 307
# :startdoc:
303

  
304
-