Skip to content

Commit 868fe80

Browse files
committed
Update lib/net/http/status.rb
1 parent 07b2b88 commit 868fe80

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lib/net/http/status.rb

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
next if ['(Unused)', 'Unassigned', 'Description'].include?(mes)
1717
puts " #{code} => '#{mes}',"
1818
end
19-
puts "}"
19+
puts "} # :nodoc:"
2020
end
2121

2222
Net::HTTP::STATUS_CODES = {
@@ -55,15 +55,16 @@
5555
410 => 'Gone',
5656
411 => 'Length Required',
5757
412 => 'Precondition Failed',
58-
413 => 'Payload Too Large',
58+
413 => 'Content Too Large',
5959
414 => 'URI Too Long',
6060
415 => 'Unsupported Media Type',
6161
416 => 'Range Not Satisfiable',
6262
417 => 'Expectation Failed',
6363
421 => 'Misdirected Request',
64-
422 => 'Unprocessable Entity',
64+
422 => 'Unprocessable Content',
6565
423 => 'Locked',
6666
424 => 'Failed Dependency',
67+
425 => 'Too Early',
6768
426 => 'Upgrade Required',
6869
428 => 'Precondition Required',
6970
429 => 'Too Many Requests',
@@ -78,6 +79,6 @@
7879
506 => 'Variant Also Negotiates',
7980
507 => 'Insufficient Storage',
8081
508 => 'Loop Detected',
81-
510 => 'Not Extended',
82+
510 => 'Not Extended (OBSOLETED)',
8283
511 => 'Network Authentication Required',
8384
} # :nodoc:

0 commit comments

Comments
 (0)