title: how can I capture **http response** from twitter.com? ( ruby + twitter gem)
body: <p>I opened a question <a href="https://stackoverflow.com/questions/2679784/how-can-i-capture-response-from-twitter-com-ruby-twitter-gem">how can I capture response from twitter.com? ( ruby + twitter gem)</a> to know if my update was successful. It is working fine...</p>
  
  <p>But I would like to know how I can capture <a href="http://apiwiki.twitter.com/HTTP-Response-Codes-and-Errors" rel="nofollow noreferrer"><strong>HTTP Response Codes and Errors</strong></a> inside my ruby code?</p>
  
  <pre><code>oauth = Twitter::OAuth.new('consumer token', 'consumer secret')
  oauth.authorize_from_access('access token', 'access secret')
  
  client = Twitter::Base.new(oauth)
  response = client.update('Heeeyyyyoooo from Twitter Gem!')
  </code></pre>