Exception: Grape::Exceptions::InvalidAcceptHeader

Inherits:
Base
  • Object
show all
Defined in:
lib/grape/exceptions/invalid_accept_header.rb

Constant Summary

Constants inherited from Base

Base::MESSAGE_STEPS

Instance Attribute Summary

Attributes inherited from Base

#headers, #status

Instance Method Summary collapse

Methods inherited from Base

#[]

Constructor Details

#initialize(message, headers) ⇒ InvalidAcceptHeader

Returns a new instance of InvalidAcceptHeader.



6
7
8
# File 'lib/grape/exceptions/invalid_accept_header.rb', line 6

def initialize(message, headers)
  super(message: compose_message(:invalid_accept_header, message:), status: 406, headers:)
end