class Apiphobic::Errors::InvalidAcceptHeader

Attributes

accept_header[RW]

Public Instance Methods

detail() click to toggle source
# File lib/apiphobic/errors/invalid_accept_header.rb, line 20
  def detail
    <<~HEREDOC.chomp.tr("\n", ' ')
      The accept header that you passed in the request cannot be parsed, please
      refer to the documentation to verify.
    HEREDOC
  end
http_status() click to toggle source
# File lib/apiphobic/errors/invalid_accept_header.rb, line 12
def http_status
  400
end
source() click to toggle source
# File lib/apiphobic/errors/invalid_accept_header.rb, line 27
def source
  {
    'accept_header' => accept_header,
  }
end
title() click to toggle source
# File lib/apiphobic/errors/invalid_accept_header.rb, line 16
def title
  'Invalid Accept Header'
end