class Typhoeus::Easy

def failure

gets called when finished and response code is 300-599
def failure
  @failure.call(self) if @failure
end