ErrorCode is the machine-readable code carried by every Error a failed operation returns.
The numeric values are grouped by area: general, connection, authentication, room and matchmaking, operation, server, client state and events.
The event codes are reported on OnError rather than through a failed operation; see Custom Events and Structured Payloads.
Area
Name
Value
Description
General
Ok
0
No error. GetErrorCode() returns this for successful results.
General
Unknown
-1
An error that maps to no other code.
Connection
ConnectionFailed
1
The connection could not be established.
Connection
Disconnected
2
The operation failed because the connection was lost.
Connection
Timeout
3
The operation or connection timed out.
Connection
ServerFull
4
The server cannot accept more connections.
Authentication
InvalidAuthentication
10
The App Id or authentication values were rejected.
Authentication
CustomAuthenticationFailed
11
The custom authentication provider rejected the credentials.
Authentication
AuthenticationTicketExpired
12
The authentication ticket expired; authenticate again.
Authentication
MaxCCUReached
13
The application reached its concurrent-user limit.
Authentication
InvalidRegion
14
The requested region is not available for this application.
Authentication
ClientVersionTooOld
15
The client version is no longer accepted by the server.
Room and matchmaking
RoomFull
20
The room reached its maximum player count.
Room and matchmaking
RoomClosed
21
The room is closed and does not accept joins.
Room and matchmaking
RoomNotFound
22
No room with the given name exists.
Room and matchmaking
RoomAlreadyExists
23
A room with the given name already exists.
Room and matchmaking
NoMatchFound
24
Random matchmaking found no matching room.
Room and matchmaking
AlreadyJoined
25
The client already joined this room.
Room and matchmaking
SlotError
26
A reserved slot (ExpectedUsers) could not be fulfilled.
Operation
OperationDenied
30
The server denied the operation.
Operation
OperationInvalid
31
The operation or its parameters are invalid.
Operation
OperationLimitReached
32
The operation limit was reached.
Operation
RateLimited
33
The client sends operations faster than allowed.
Server
InternalServerError
40
The server encountered an internal error.
Server
PluginError
41
A server-side plugin reported an error.
Server
ServerDisconnect
42
The server disconnected the client.
Client state
NotConnected
50
The operation requires a connection.
Client state
NotInRoom
51
The operation requires being in a room.
Client state
InvalidState
52
The operation is not allowed in the client's current state.
Event
EventSizeMismatch
53
An incoming event payload did not match sizeof(T) of a SubscribeEvent<T>() subscription.
Event
EventEncodeFailed
54
An outgoing event payload could not be encoded from a RealtimeValue.
Event
EventDecodeFailed
55
An incoming event payload could not be decoded into a RealtimeValue.
Event
EventPayloadTypeMismatch
56
An incoming event payload did not match the subscribed payload form.