code: def validate_response(response)
        if (error = TwoCaptcha::RESPONSE_ERRORS[response])
          fail(error)
        elsif response.to_s.empty? || response.match(/\AERROR\_/)
          fail(TwoCaptcha::Error, response)
        end
      end
docs: Fail if the response has errors.
  
   @param [String] response The body response from TwoCaptcha API.