Exception: Hyperdrive::Errors::MethodNotAllowed

Inherits:
HTTPError
  • Object
show all
Defined in:
lib/hyperdrive/errors/method_not_allowed.rb

Instance Attribute Summary

Attributes inherited from HTTPError

#http_status_code, #message

Instance Method Summary collapse

Constructor Details

#initialize(request_method) ⇒ MethodNotAllowed

Returns a new instance of MethodNotAllowed.



4
5
6
7
8
# File 'lib/hyperdrive/errors/method_not_allowed.rb', line 4

def initialize(request_method)
  @request_method = request_method
  @message = "#{request_method.upcase} requests are not supported by this resource."
  @http_status_code = 405
end