package user import sharederrors "knowfoolery/backend/shared/domain/errors" var ( // ErrUserNotFound indicates user was not found. ErrUserNotFound = sharederrors.New(sharederrors.CodeUserNotFound, "user not found") // ErrUserAlreadyExists indicates user already exists. ErrUserAlreadyExists = sharederrors.New(sharederrors.CodeUserAlreadyExists, "user already exists") // ErrValidationFailed indicates user data is invalid. ErrValidationFailed = sharederrors.New(sharederrors.CodeValidationFailed, "validation failed") // ErrForbidden indicates the caller cannot access the resource. ErrForbidden = sharederrors.New(sharederrors.CodeForbidden, "forbidden") // ErrUnauthorized indicates missing user context. ErrUnauthorized = sharederrors.New(sharederrors.CodeUnauthorized, "unauthorized") )