YUKI Hiroshi
null+****@clear*****
Thu Dec 26 15:58:48 JST 2013
YUKI Hiroshi 2013-12-26 15:58:48 +0900 (Thu, 26 Dec 2013) New Revision: e66e599fe5c94b58fc4d7e8827214c1312f1f5fe https://github.com/droonga/fluent-plugin-droonga/commit/e66e599fe5c94b58fc4d7e8827214c1312f1f5fe Message: Return unknown dataset error as 404 Modified files: lib/droonga/dispatcher.rb lib/droonga/message_processing_error.rb Modified: lib/droonga/dispatcher.rb (+1 -1) =================================================================== --- lib/droonga/dispatcher.rb 2013-12-26 15:56:11 +0900 (17d3041) +++ lib/droonga/dispatcher.rb 2013-12-26 15:58:48 +0900 (445202c) @@ -38,7 +38,7 @@ module Droonga end end - class UnknownDataset < BadRequest + class UnknownDataset < NotFound def initialize(dataset) super("The dataset #{dataset.inspect} does not exist.") end Modified: lib/droonga/message_processing_error.rb (+6 -0) =================================================================== --- lib/droonga/message_processing_error.rb 2013-12-26 15:56:11 +0900 (748b1a7) +++ lib/droonga/message_processing_error.rb 2013-12-26 15:58:48 +0900 (084a0c8) @@ -45,4 +45,10 @@ module Droonga 400 end end + + class NotFound < MessageProcessingError + def status_code + 404 + end + end end -------------- next part -------------- HTML����������������������������...다운로드