Exception: Apiphobic::Errors::InvalidAcceptHeader

Inherits:
RuntimeError
  • Object
show all
Includes:
Erratum::Error
Defined in:
lib/apiphobic/errors/invalid_accept_header.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#accept_headerObject

Returns the value of attribute accept_header.



10
11
12
# File 'lib/apiphobic/errors/invalid_accept_header.rb', line 10

def accept_header
  @accept_header
end

Instance Method Details

#detailObject



20
21
22
23
24
25
# File 'lib/apiphobic/errors/invalid_accept_header.rb', line 20

def detail
  "    The accept header that you passed in the request cannot be parsed, please\n    refer to the documentation to verify.\n  HEREDOC\nend\n".chomp.tr("\n", ' ')

#http_statusObject



12
13
14
# File 'lib/apiphobic/errors/invalid_accept_header.rb', line 12

def http_status
  400
end

#sourceObject



27
28
29
30
31
# File 'lib/apiphobic/errors/invalid_accept_header.rb', line 27

def source
  {
    'accept_header' => accept_header,
  }
end

#titleObject



16
17
18
# File 'lib/apiphobic/errors/invalid_accept_header.rb', line 16

def title
  'Invalid Accept Header'
end