I opened a question how can I capture response from twitter.com? ( ruby + twitter gem) to know if my update was successful. It is working fine...
But I would like to know how I can capture HTTP Response Codes and Errors inside my ruby 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!')