Exception: Hyperdrive::Errors::NotAcceptable
- Defined in:
- lib/hyperdrive/errors/not_acceptable.rb
Instance Attribute Summary
Attributes inherited from HTTPError
Instance Method Summary collapse
-
#initialize(http_accept) ⇒ NotAcceptable
constructor
A new instance of NotAcceptable.
Constructor Details
#initialize(http_accept) ⇒ NotAcceptable
Returns a new instance of NotAcceptable.
6 7 8 9 |
# File 'lib/hyperdrive/errors/not_acceptable.rb', line 6 def initialize(http_accept) @message = "This resource is not capable of generating content in the format requested by the Accept headers (#{http_accept})." @http_status_code = 406 end |