code: def _handle_error_response(response_body):
      Translates an error response into an exception.
  
      Args:
          response_body (str): The decoded response data.
  
      Raises:
          google.auth.exceptions.RefreshError
      """
      try:
          error_data = json.loads(response_body)
          error_details = '{}: {}'.format(
              error_data['error'],
              error_data.get('error_description'))
      # If no details could be extracted, use the response data.
      except (KeyError, ValueError):
          error_details = response_body
  
      raise exceptions.RefreshError(
          error_details, response_body)
docs: Translates an error response into an exception.
  
      Args:
          response_body (str): The decoded response data.
  
      Raises:
          google.auth.exceptions.RefreshError