Reference - fullphat/snarl_network_protocol GitHub Wiki

Status Codes

The following status codes are either returned by Snarl itself, or by libraries that conform to the Snarl API standard:

public enum StatusCodes : int
{
    Success = 0,
    NotInitialised = 100,
    Failed = 101,         
    UnknownCommand = 102,
    TimedOut = 103,
    BadSocket = 106,     
    BadPacket = 107,           // note same number: BadRequest is the preferred text
    BadRequest = 107,          // note same number
    InvalidArg = 108,       
    ArgMissing = 109,       
    ServerError = 110,      
    SchemeNotFound = 111,     
    NotImplemented = 112,     
    NotSupported = 113,       
    AccessDenied = 121,        
    UnknownHost = 122,        
    ConnectionFailed = 123,   
    ConnectionRefused = 124,  
    ConnectionTimedOut = 125, 
    ReplyTimedOut = 126,      
    InvalidHeader = 130,      
    UnsupportedVersion = 131, 
    NoActionsProvided = 132,  
    UnsupportedEncryption = 133, 
    UnsupportedHashing = 134,    
    HashTypeMismatch = 135,   
    UnsupportedProtocol = 136,
    AuthorisationError = 137,  
    NotRunning = 201,           
    NotRegistered = 202,
    AlreadyExists = 204,
    EventMuted = 205,
    EventNotFound = 206,
    NotificationNotFound = 207,
    AuthenticationFailure = 211,  
    OldDiscarded = 212,            
    NotSubscribed = 213,            
    AlreadySubscribed = 214,     
    NotFound = 215,                
    OldUserAway = 216,             
    RequestTypeConflict = 217,     
    NotAllowed = 218,             
    Created = 252,                   
    Updated = 253,                
    NothingToDo = 254,        
    Scheduled = 255,              
    CoalescedExisting = 256,      
    Logged = 257,               
    OsdNotRunning = 258,             
    LoggedAsMissed = 259,               
    WasDiscarded = 260,                   
}