You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: soap_parser.rb
    path of file: ./repos/vets-api/lib/hca
    
    the code of the file until where you have to start completion: # frozen_string_literal: 
    
    def on_complete(env)
      super
    rescue Common::Client::Errors::HTTPError => e
      if env.status.to_i == 503
        raise Faraday::TimeoutError
      else
        doc = parse_doc(env.body)
        el = doc.locate(FAULT_STRING_EL)[0]

        if el&.nodes.try(:[], 0) == 'formSubmissionException' &&
           doc.locate(FAULT_CODE_EL)[0]&.nodes.try(:[], 0) != 'VOA_0240'
          StatsD.increment(VALIDATION_FAIL_KEY)
          Sentry.set_tags(validation: 'hca')
          log_exception_to_sentry(e)

          raise ValidationError
        end

        raise
      end