namespace ZB.MOM.WW.MxGateway.Server.Sessions;

public enum SessionManagerErrorCode
{
    SessionNotFound,
    SessionNotReady,
    EventSubscriberAlreadyActive,
    EventSubscriberLimitReached,
    EventQueueOverflow,
    SessionLimitExceeded,
    OpenFailed,
    CloseFailed,

    /// <summary>
    ///     The caller is not permitted to perform the operation on this session — for example,
    ///     attaching a <c>StreamEvents</c> stream to a session opened by a different API key.
    ///     Maps to gRPC <c>PermissionDenied</c>.
    /// </summary>
    PermissionDenied,
}
