code: def raise_for_error(status_code, message=None, errors=None):
      
      if status_code == 400:
          raise exceptions.InvalidRequest(message, errors=errors)
      elif status_code == 401:
          raise exceptions.Unauthorized(message, errors=errors)
      elif status_code == 403:
          raise exceptions.Forbidden(message, errors=errors)
      elif status_code == 404:
          raise exceptions.InvalidPath(message, errors=errors)
      elif status_code == 429:
          raise exceptions.RateLimitExceeded(message, errors=errors)
      elif status_code == 500:
          raise exceptions.InternalServerError(message, errors=errors)
      elif status_code == 501:
          raise exceptions.VaultNotInitialized(message, errors=errors)
      elif status_code == 503:
          raise exceptions.VaultDown(message, errors=errors)
      else:
          raise exceptions.UnexpectedError(message)
docs: Helper method to raise exceptions based on the status code of a response received back from Vault.
  
      :param status_code: Status code received in a response from Vault.
      :type status_code: int
      :param message: Optional message to include in a resulting exception.
      :type message: str
      :param errors: Optional errors to include in a resulting exception.
      :type errors: list | str
  
      :raises: hvac.exceptions.InvalidRequest | hvac.exceptions.Unauthorized | hvac.exceptions.Forbidden |
          hvac.exceptions.InvalidPath | hvac.exceptions.RateLimitExceeded | hvac.exceptions.InternalServerError |
          hvac.exceptions.VaultNotInitialized | hvac.exceptions.VaultDown | hvac.exceptions.UnexpectedError