class RestClient::ExceptionWithResponse

Base RestClient exception when there’s a response available

def http_body

def http_body
	RestClient::Request.decode(@response['content-encoding'], @response.body) if @response
end

def http_code

def http_code
	@response.code.to_i if @response
end

def initialize(response=nil)

def initialize(response=nil)
	@response = response
end