зеркало из https://github.com/github/ruby.git
Update lib/net/http/status.rb
This commit is contained in:
Родитель
66b89b069d
Коммит
9cc0ac22f7
|
@ -16,7 +16,7 @@ if $0 == __FILE__
|
||||||
next if ['(Unused)', 'Unassigned', 'Description'].include?(mes)
|
next if ['(Unused)', 'Unassigned', 'Description'].include?(mes)
|
||||||
puts " #{code} => '#{mes}',"
|
puts " #{code} => '#{mes}',"
|
||||||
end
|
end
|
||||||
puts "}"
|
puts "} # :nodoc:"
|
||||||
end
|
end
|
||||||
|
|
||||||
Net::HTTP::STATUS_CODES = {
|
Net::HTTP::STATUS_CODES = {
|
||||||
|
@ -55,15 +55,16 @@ Net::HTTP::STATUS_CODES = {
|
||||||
410 => 'Gone',
|
410 => 'Gone',
|
||||||
411 => 'Length Required',
|
411 => 'Length Required',
|
||||||
412 => 'Precondition Failed',
|
412 => 'Precondition Failed',
|
||||||
413 => 'Payload Too Large',
|
413 => 'Content Too Large',
|
||||||
414 => 'URI Too Long',
|
414 => 'URI Too Long',
|
||||||
415 => 'Unsupported Media Type',
|
415 => 'Unsupported Media Type',
|
||||||
416 => 'Range Not Satisfiable',
|
416 => 'Range Not Satisfiable',
|
||||||
417 => 'Expectation Failed',
|
417 => 'Expectation Failed',
|
||||||
421 => 'Misdirected Request',
|
421 => 'Misdirected Request',
|
||||||
422 => 'Unprocessable Entity',
|
422 => 'Unprocessable Content',
|
||||||
423 => 'Locked',
|
423 => 'Locked',
|
||||||
424 => 'Failed Dependency',
|
424 => 'Failed Dependency',
|
||||||
|
425 => 'Too Early',
|
||||||
426 => 'Upgrade Required',
|
426 => 'Upgrade Required',
|
||||||
428 => 'Precondition Required',
|
428 => 'Precondition Required',
|
||||||
429 => 'Too Many Requests',
|
429 => 'Too Many Requests',
|
||||||
|
@ -78,6 +79,6 @@ Net::HTTP::STATUS_CODES = {
|
||||||
506 => 'Variant Also Negotiates',
|
506 => 'Variant Also Negotiates',
|
||||||
507 => 'Insufficient Storage',
|
507 => 'Insufficient Storage',
|
||||||
508 => 'Loop Detected',
|
508 => 'Loop Detected',
|
||||||
510 => 'Not Extended',
|
510 => 'Not Extended (OBSOLETED)',
|
||||||
511 => 'Network Authentication Required',
|
511 => 'Network Authentication Required',
|
||||||
} # :nodoc:
|
} # :nodoc:
|
||||||
|
|
Загрузка…
Ссылка в новой задаче