class Apia::InvalidJSONError

Public Instance Methods

hash() click to toggle source
# 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_status() click to toggle source
# File lib/apia/errors/invalid_json_error.rb, line 8
def http_status
  400
end