old_contents: """
  Tools for managing result codes.
  """
  
  from requests import Response
  
  from vws.exceptions import (
      AuthenticationFailure,
      BadImage,
      DateRangeError,
      Fail,
      ImageTooLarge,
      MetadataTooLarge,
      ProjectInactive,
      RequestQuotaReached,
      RequestTimeTooSkewed,
      TargetNameExist,
      TargetStatusNotSuccess,
      TargetStatusProcessing,
      UnknownTarget,
  )
  
  
  def raise_for_result_code(
      response: Response,
      expected_result_code: str,
  ) -> None:
      """
      Raise an appropriate exception if the expected result code for a successful
      request is not returned.
  
      Args:
          response: A response from Vuforia.
          expected_result_code: See
              https://library.vuforia.com/articles/Solution/How-To-Use-the-Vuforia-Web-Services-API.html#How-To-Interperete-VWS-API-Result-Codes
      """
      result_code = response.json()['result_code']
      if result_code == expected_result_code:
          return
  
      exception = {
          'AuthenticationFailure': AuthenticationFailure,
          'BadImage': BadImage,
          'DateRangeError': DateRangeError,
          'Fail': Fail,
          'ImageTooLarge': ImageTooLarge,
          'MetadataTooLarge': MetadataTooLarge,
          'ProjectInactive': ProjectInactive,
          'RequestQuotaReached': RequestQuotaReached,
          'RequestTimeTooSkewed': RequestTimeTooSkewed,
          'TargetNameExist': TargetNameExist,
          'TargetStatusNotSuccess': TargetStatusNotSuccess,
          'TargetStatusProcessing': TargetStatusProcessing,
          'UnknownTarget': UnknownTarget,
      }[result_code]
  
      raise exception(response=response)
  
new_contents: """
  Tools for managing result codes.
  """
  
  from requests import Response
  
  from vws.exceptions import (
      AuthenticationFailure,
      BadImage,
      DateRangeError,
      Fail,
      ImageTooLarge,
      MetadataTooLarge,
      ProjectInactive,
      RequestQuotaReached,
      RequestTimeTooSkewed,
      TargetNameExist,
      TargetStatusNotSuccess,
      TargetStatusProcessing,
      UnknownTarget,
  )
  
  
  def raise_for_result_code(
      response: Response,
      expected_result_code: str,
  ) -> None:
      """
      Raise an appropriate exception if the expected result code for a successful
      request is not returned.
  
      Args:
          response: A response from Vuforia.
          expected_result_code: See
              https://library.vuforia.com/articles/Solution/How-To-Use-the-Vuforia-Web-Services-API.html#How-To-Interperete-VWS-API-Result-Codes
      """
      result_code = response.json()['result_code']
      if result_code == expected_result_code:
          return
  
      exception = {
          'AuthenticationFailure': AuthenticationFailure,
          'BadImage': BadImage,
          'DateRangeError': DateRangeError,
          'Fail': Fail,
          'ImageTooLarge': ImageTooLarge,
          'InactiveProject': ProjectInactive,
          'MetadataTooLarge': MetadataTooLarge,
          'ProjectInactive': ProjectInactive,
          'RequestQuotaReached': RequestQuotaReached,
          'RequestTimeTooSkewed': RequestTimeTooSkewed,
          'TargetNameExist': TargetNameExist,
          'TargetStatusNotSuccess': TargetStatusNotSuccess,
          'TargetStatusProcessing': TargetStatusProcessing,
          'UnknownTarget': UnknownTarget,
      }[result_code]
  
      raise exception(response=response)
  
subject: Add inactive project