Exception: Apiphobic::Errors::InvalidAcceptHeader
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Apiphobic::Errors::InvalidAcceptHeader
- Includes:
- Erratum::Error
- Defined in:
- lib/apiphobic/errors/invalid_accept_header.rb
Instance Attribute Summary collapse
-
#accept_header ⇒ Object
Returns the value of attribute accept_header.
Instance Method Summary collapse
Instance Attribute Details
#accept_header ⇒ Object
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
#detail ⇒ Object
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_status ⇒ Object
12 13 14 |
# File 'lib/apiphobic/errors/invalid_accept_header.rb', line 12 def http_status 400 end |
#source ⇒ Object
27 28 29 30 31 |
# File 'lib/apiphobic/errors/invalid_accept_header.rb', line 27 def source { 'accept_header' => accept_header, } end |
#title ⇒ Object
16 17 18 |
# File 'lib/apiphobic/errors/invalid_accept_header.rb', line 16 def title 'Invalid Accept Header' end |