Method: Grape::Exceptions::MethodNotAllowed#initialize
- Defined in:
- lib/grape/exceptions/method_not_allowed.rb
#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 |