diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-02-28 14:10:18 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-02-28 14:29:57 +0900 |
commit | 9cc0ac22f7c9f37aa7fadfe5606ce2feed260d2d (patch) | |
tree | b94ae35a65d6dd97fb497920995464d5b5ae8a17 /lib | |
parent | 66b89b069d3cc8296696f98a5040106b63b0ab06 (diff) |
Update lib/net/http/status.rb
Diffstat (limited to 'lib')
-rw-r--r-- | lib/net/http/status.rb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/net/http/status.rb b/lib/net/http/status.rb index 9673005871..e70b47d9fb 100644 --- a/lib/net/http/status.rb +++ b/lib/net/http/status.rb @@ -16,7 +16,7 @@ if $0 == __FILE__ next if ['(Unused)', 'Unassigned', 'Description'].include?(mes) puts " #{code} => '#{mes}'," end - puts "}" + puts "} # :nodoc:" end Net::HTTP::STATUS_CODES = { @@ -55,15 +55,16 @@ Net::HTTP::STATUS_CODES = { 410 => 'Gone', 411 => 'Length Required', 412 => 'Precondition Failed', - 413 => 'Payload Too Large', + 413 => 'Content Too Large', 414 => 'URI Too Long', 415 => 'Unsupported Media Type', 416 => 'Range Not Satisfiable', 417 => 'Expectation Failed', 421 => 'Misdirected Request', - 422 => 'Unprocessable Entity', + 422 => 'Unprocessable Content', 423 => 'Locked', 424 => 'Failed Dependency', + 425 => 'Too Early', 426 => 'Upgrade Required', 428 => 'Precondition Required', 429 => 'Too Many Requests', @@ -78,6 +79,6 @@ Net::HTTP::STATUS_CODES = { 506 => 'Variant Also Negotiates', 507 => 'Insufficient Storage', 508 => 'Loop Detected', - 510 => 'Not Extended', + 510 => 'Not Extended (OBSOLETED)', 511 => 'Network Authentication Required', } # :nodoc: |