internal static bool IsAuthenticationExpiredError(this NATSConnectionException ex) => ex?.Message.Equals("'authentication expired'", StringComparison.OrdinalIgnoreCase) == true;
internal static bool IsAuthorizationViolationError(this NATSConnectionException ex) => ex?.Message.Equals("'authorization violation'", StringComparison.OrdinalIgnoreCase) == true;