Exception: Apia::InvalidJSONError

Inherits:
RuntimeError show all
Defined in:
lib/apia/errors/invalid_json_error.rb

Instance Method Summary collapse

Instance Method Details

#hashObject



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: message
    }
  }
end

#http_statusObject



8
9
10
# File 'lib/apia/errors/invalid_json_error.rb', line 8

def http_status
  400
end