From: "knu (Akinori MUSHA)" Date: 2012-07-05T12:32:30+09:00 Subject: [ruby-core:46193] [ruby-trunk - Bug #6700] [PATCH] Fix some 4xx status classes to inherit correctly from Net::HTTPClientError Issue #6700 has been updated by knu (Akinori MUSHA). Thanks for pointing it out. I merged your patch and added a test. ---------------------------------------- Bug #6700: [PATCH] Fix some 4xx status classes to inherit correctly from Net::HTTPClientError https://bugs.ruby-lang.org/issues/6700#change-27819 Author: madeofcode (Mark Dodwell) Status: Closed Priority: Normal Assignee: knu (Akinori MUSHA) Category: Target version: 2.0.0 ruby -v: ruby 2.0.0dev (2012-07-05 trunk 36311) [x86_64-darwin11.4.2] These recently added 4xx status classes were inheriting from Net::HTTPSuccess, which seems incorrect. I believe they should inherit from Net::HTTPClientError, as with all the other 4xx cases. Note that this change subtly alters/fixes the behavior of these classes since they will now inherit the `EXCEPTION_TYPE = Net::HTTPServerException` from Net::HTTPClientError which they would not have had previously. I expect that's disable, but just wanted to flag that. -- http://bugs.ruby-lang.org/