Exception: Apia::InvalidJSONError
- Inherits:
-
RuntimeError
- Object
- StandardError
- StandardError
- RuntimeError
- Apia::InvalidJSONError
- Defined in:
- lib/apia/errors/invalid_json_error.rb
Instance Method Summary collapse
Instance Method Details
#hash ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'lib/apia/errors/invalid_json_error.rb', line 12 def hash { code: 'invalid_json_body', description: 'The JSON body provided with this request is invalid', detail: { details: } } end |
#http_status ⇒ Object
8 9 10 |
# File 'lib/apia/errors/invalid_json_error.rb', line 8 def http_status 400 end |