class Datadog::Core::Telemetry::Http::Adapters::Net::Response

Data structure for an HTTP Response

def client_error?

def client_error?
  return super if http_response.nil?
  code.between?(400, 499)
end

def code

def code
  return super if http_response.nil?
  http_response.code.to_i
end

def initialize(http_response)

def initialize(http_response)
  @http_response = http_response
end

def inspect

def inspect
  "#{super}, http_response:#{http_response}"
end

def not_found?

def not_found?
  return super if http_response.nil?
  code == 404
end

def ok?

def ok?
  return super if http_response.nil?
  code.between?(200, 299)
end

def payload

def payload
  return super if http_response.nil?
  http_response.body
end

def server_error?

def server_error?
  return super if http_response.nil?
  code.between?(500, 599)
end

def unsupported?

def unsupported?
  return super if http_response.nil?
  code == 415
end