[Groonga-commit] droonga/fluent-plugin-droonga at 3d1c4db [master] Return correct status code

Back to archive index

YUKI Hiroshi null+****@clear*****
Mon Jan 27 18:07:23 JST 2014


YUKI Hiroshi	2014-01-27 18:07:23 +0900 (Mon, 27 Jan 2014)

  New Revision: 3d1c4dbb77c9e2c257a047716e5d18d9ca702c2a
  https://github.com/droonga/fluent-plugin-droonga/commit/3d1c4dbb77c9e2c257a047716e5d18d9ca702c2a

  Message:
    Return correct status code

  Modified files:
    lib/droonga/message_processing_error.rb

  Modified: lib/droonga/message_processing_error.rb (+8 -0)
===================================================================
--- lib/droonga/message_processing_error.rb    2014-01-27 17:52:13 +0900 (301ff13)
+++ lib/droonga/message_processing_error.rb    2014-01-27 18:07:23 +0900 (7224ea6)
@@ -44,9 +44,17 @@ module Droonga
 
   class BadRequest < MessageProcessingError
     STATUS_CODE = 400.freeze
+
+    def status_code
+      STATUS_CODE
+    end
   end
 
   class NotFound < MessageProcessingError
     STATUS_CODE = 404.freeze
+
+    def status_code
+      STATUS_CODE
+    end
   end
 end
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index