pub enum ErrorCode {
Show 52 variants
Unauthorized,
InvalidToken,
AuthenticationRequired,
InvalidAppId,
AppIdExpired,
AppIdRevoked,
AppIdSuspended,
MissingAppId,
AuthenticationTimeout,
SdkVersionUnsupported,
UnsupportedGameDataFormat,
InvalidInput,
InvalidGameName,
InvalidRoomCode,
InvalidPlayerName,
InvalidMaxPlayers,
MessageTooLarge,
RoomNotFound,
RoomFull,
AlreadyInRoom,
NotInRoom,
RoomCreationFailed,
MaxRoomsPerGameExceeded,
InvalidRoomState,
AuthorityNotSupported,
AuthorityConflict,
AuthorityDenied,
RateLimitExceeded,
TooManyConnections,
ReconnectionFailed,
ReconnectionTokenInvalid,
ReconnectionExpired,
PlayerAlreadyConnected,
SpectatorNotAllowed,
TooManySpectators,
NotASpectator,
SpectatorJoinFailed,
InternalError,
StorageError,
ServiceUnavailable,
GameStartNotReady,
GameStartForbidden,
CrossRoomSignal,
UnsupportedTransport,
SignalTargetNotFound,
SignalRateLimited,
SignalTooLarge,
ConnectionIdleTimeout,
SlowConsumer,
ActivityTimeout,
ServerDraining,
InvalidDeliveryClass,
}Expand description
Structured error codes returned by the Signal Fish server.
Each variant corresponds to a specific error condition. The server sends these
as "SCREAMING_SNAKE_CASE" strings (e.g., "ROOM_NOT_FOUND").
Use description() for a human-readable explanation.
Variants§
InvalidToken
AuthenticationRequired
InvalidAppId
AppIdExpired
AppIdRevoked
AppIdSuspended
MissingAppId
AuthenticationTimeout
SdkVersionUnsupported
UnsupportedGameDataFormat
InvalidInput
InvalidGameName
InvalidRoomCode
InvalidPlayerName
InvalidMaxPlayers
MessageTooLarge
RoomNotFound
RoomFull
AlreadyInRoom
NotInRoom
RoomCreationFailed
MaxRoomsPerGameExceeded
InvalidRoomState
AuthorityNotSupported
AuthorityConflict
AuthorityDenied
RateLimitExceeded
TooManyConnections
ReconnectionFailed
ReconnectionTokenInvalid
ReconnectionExpired
PlayerAlreadyConnected
SpectatorNotAllowed
TooManySpectators
NotASpectator
SpectatorJoinFailed
InternalError
StorageError
GameStartNotReady
GameStartForbidden
CrossRoomSignal
UnsupportedTransport
SignalTargetNotFound
SignalRateLimited
SignalTooLarge
ConnectionIdleTimeout
SlowConsumer
The server evicted this connection because its outbound queue stayed full past the slow-consumer grace window (5 seconds by default): the client was not draining messages fast enough.
The farewell Error frame carrying this code is written best-effort
into an already-congested socket, so it may never arrive; a bare
disconnect can be the only observable signal. Wire: "SLOW_CONSUMER".
ActivityTimeout
The server closed the connection after prolonged protocol inactivity
(no messages received within the activity window). Wire:
"ACTIVITY_TIMEOUT".
ServerDraining
The server is draining for shutdown and rejecting new room creation. Existing connections close with semantic code 4000 at the deadline.
InvalidDeliveryClass
The requested protocol-v3 delivery class/key combination is invalid.