Table of Contents

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 = 9

access_denied — the player token does not grant access to this resource.

Banned = 2

banned — the player is banned from the server.

ClientMappingFailed = 15

Client-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 = 10

message_not_sent — the team chat message was rejected.

NoClan = 7

no_clan — the player is not in a clan.

NoMap = 8

no_map — the server has no map image available.

NoPlayer = 13

no_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 = 6

no_team — the player is not in a team.

NotEnabled = 12

not_enabled — the requested feature is disabled on this server.

NotFound = 4

not_found — the requested entity or resource does not exist.

NotSupported = 14

Client-side: the action is not supported by the target device, so the request was never sent. Raised by capability-gated helpers (e.g. CameraController.ZoomAsync on 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 = 3

rate_limit — the request was throttled; retry later.

ServerError = 1

server_error — the server failed to process the request.

TooManySubscribers = 11

too_many_subscribers — the entity has reached its subscription limit.

Unknown = 0

The server returned an identifier this library does not recognize (or none at all); inspect Message for the raw value.

WrongType = 5

wrong_type — the entity exists but is not of the requested kind.