Exception: Grape::Exceptions::MethodNotAllowed
- Defined in:
- lib/grape/exceptions/method_not_allowed.rb
Constant Summary
Constants inherited from Base
Base::BASE_ATTRIBUTES_KEY, Base::BASE_MESSAGES_KEY, Base::FALLBACK_LOCALE
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(headers) ⇒ MethodNotAllowed
constructor
A new instance of MethodNotAllowed.
Methods inherited from Base
Constructor Details
#initialize(headers) ⇒ MethodNotAllowed
Returns a new instance of MethodNotAllowed.
6 7 8 |
# File 'lib/grape/exceptions/method_not_allowed.rb', line 6 def initialize(headers) super(message: '405 Not Allowed', status: 405, headers: headers) end |