code: def translate_gitlab_exception(func):
      
  
      @functools.wraps(func)
      def _wrapper(*args, **kwargs):
          try:
              return func(*args, **kwargs)
          except gitlab.GitlabError as e:
              status_to_exception = {
                  401: UnauthorizedError,
                  404: NotFoundError,
              }
  
              exc_class = status_to_exception.get(e.response_code, GitClientError)
              raise exc_class(str(e), status_code=e.response_code)
  
      return _wrapper
docs: Decorator to catch GitLab-specific exceptions and raise them as GitClientError exceptions.