Class: Apill::Errors::InvalidApiRequestError

Inherits:
HumanError::Errors::RequestError
  • Object
show all
Defined in:
lib/apill/errors/invalid_api_request_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#accept_headerObject

Returns the value of attribute accept_header.



6
7
8
# File 'lib/apill/errors/invalid_api_request_error.rb', line 6

def accept_header
  @accept_header
end

Instance Method Details

#developer_detailsObject



16
17
18
# File 'lib/apill/errors/invalid_api_request_error.rb', line 16

def developer_details
  { accept_header: accept_header }
end

#developer_messageObject



12
13
14
# File 'lib/apill/errors/invalid_api_request_error.rb', line 12

def developer_message
  'The accept header that you passed in the request cannot be parsed, please refer to the documentation to verify.'
end

#friendly_messageObject



20
21
22
# File 'lib/apill/errors/invalid_api_request_error.rb', line 20

def friendly_message
  "Sorry! We couldn't understand what you were trying to ask us to do."
end

#http_statusObject



8
9
10
# File 'lib/apill/errors/invalid_api_request_error.rb', line 8

def http_status
  400
end