response -> Net::HTTPResponse[permalink][rdoc][edit]data -> Net::HTTPResponse-
例外の原因となったレスポンスオブジェクトを返します。
例require 'net/http' uri = "http://www.example.com/invalid.html" response = Net::HTTP.get_response(URI(uri)) begin response.value rescue => e p e.response # => #<Net::HTTPNotFound 404 Not Found readbody=true> end