Exception: Hyperdrive::Errors::NotAcceptable

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

Instance Attribute Summary

Attributes inherited from HTTPError

#http_status_code, #message

Instance Method Summary collapse

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