title: How can I handle errors with HTTParty?
body: <p>I'm working on a Rails application using HTTParty to make HTTP requests. How can I handle HTTP errors with HTTParty? Specifically, I need to catch HTTP 502 &amp; 503 and other errors like connection refused and timeout errors.</p>