Enum RustPlusErrorCode
- Namespace
- RustPlusApi.Data
- Assembly
- RustPlusApi.dll
Machine-readable Rust+ server error identifiers, parsed from the raw error string so consumers can branch on failure type without string comparisons. The raw identifier always remains available on Message; unrecognized identifiers map to Unknown. The numeric values are part of the public contract: append new members, never renumber.
public enum RustPlusErrorCode
Fields
AccessDenied = 9access_denied— the player token does not grant access to this resource.Banned = 2banned— the player is banned from the server.ClientMappingFailed = 15Client-side: the server replied successfully but this library failed to map the payload (e.g. reading an alarm through
GetSmartSwitchInfoAsync— the server answers with the entity's actual type). Message carries the mapper's exception message.MessageNotSent = 10message_not_sent— the team chat message was rejected.NoClan = 7no_clan— the player is not in a clan.NoMap = 8no_map— the server has no map image available.NoPlayer = 13no_player— the target entity is gone: observed on camera subscribe attempts after the camera entity had been destroyed in game (despite the name, it does not indicate anything about the paired player's own state).NoTeam = 6no_team— the player is not in a team.NotEnabled = 12not_enabled— the requested feature is disabled on this server.NotFound = 4not_found— the requested entity or resource does not exist.NotSupported = 14Client-side: the action is not supported by the target device, so the request was never sent. Raised by capability-gated helpers (e.g.
CameraController.ZoomAsyncon a non-PTZ camera) — the live server acknowledges unsupported camera inputs with success while silently ignoring them, so this is the only feedback available.RateLimit = 3rate_limit— the request was throttled; retry later.ServerError = 1server_error— the server failed to process the request.TooManySubscribers = 11too_many_subscribers— the entity has reached its subscription limit.Unknown = 0The server returned an identifier this library does not recognize (or none at all); inspect Message for the raw value.
WrongType = 5wrong_type— the entity exists but is not of the requested kind.