Exception: Drillbit::Errors::InvalidApiRequest
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Drillbit::Errors::InvalidApiRequest
- Includes:
- Erratum::Error
- Defined in:
- lib/drillbit/errors/invalid_api_request.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/drillbit/errors/invalid_api_request.rb', line 10 def accept_header @accept_header end |
Instance Method Details
#detail ⇒ Object
20 21 22 23 |
# File 'lib/drillbit/errors/invalid_api_request.rb', line 20 def detail 'The accept header that you passed in the request cannot be parsed, ' \ 'please refer to the documentation to verify.' end |
#http_status ⇒ Object
12 13 14 |
# File 'lib/drillbit/errors/invalid_api_request.rb', line 12 def http_status 400 end |
#source ⇒ Object
25 26 27 |
# File 'lib/drillbit/errors/invalid_api_request.rb', line 25 def source { accept_header: accept_header } end |
#title ⇒ Object
16 17 18 |
# File 'lib/drillbit/errors/invalid_api_request.rb', line 16 def title 'Invalid API Request' end |