One way to find out is to use the pry gem. Once installed you can put binding.pry just after your http.get line and run your code. When it hits the pry line it will stop executing and open up a IRB prompt and then you can play around with resp directly trying different things. One really nifty feature is you can cd resp and are now "in" the object itself. Type ls and you can see all the methods available. Makes figuring this sort of thing out much easier.

Email codedump link for In RoR, how do I get the status code when requesting a web page through a proxy?