What I currently do is that I send a request and I catch an error if it occures.
Client.rb
class Client def initialize