Skip to main content

Error Response Format

All errors are returned in JSON format with code and message fields. For example:
{
  "code": 5007,
  "message": "Missing Token"
}

ER:LC Russia API Error Table

CodeDescriptionMeaning
5001Missing Discord Iddiscord_id is missing. Add the discord_id field to the request body
5002Missing ParametersRequired parameters are missing. Check the request body
5003Invalid VersionInvalid API version. Use v1 or v2
5004Invalid Param NameInvalid query parameter name
5005Missing CommandCommand not provided. Add the command field to the request body
5006Invalid Master KeyInvalid master key. Contact an administrator
5007Missing TokenToken is missing. Add the Authorization: Bearer <token> header
5008Invalid TokenToken is invalid or deactivated
5009ForbiddenNo access to this endpoint. Contact an administrator
5010Api Version ForbiddenAccess to this API version is forbidden for your key
5011Query Param ForbiddenAccess to the requested query parameters is forbidden
5012Discord Id Not FoundDiscord ID not found in the database
5013Token Not FoundToken not found
5014Token Not Found Or DeletedToken not found or has been deleted
5015Command Queue FullCommand queue is full. Try again later
5016Rate Limit ExceededRequest limit exceeded. Wait for reset (see retry_after)
5017Internal ErrorInternal server error. The error is logged
5018Server ErrorError when accessing the external API. Data may be from cache
5019Prc Api ErrorError from PRC API. See the prc_code field for the PRC error code
5020Not FoundEndpoint not found. Check the request URL
5021Webhook Url Already ExistsWebhook URL already exists
5022Webhook Not FoundWebhook not found
5023Webhook Url Not FoundWebhook URL not found
5024Cache ExpiredCache is stale and unavailable. All data sources returned an error
5025Websocket Key Not FoundWebSocket key not found
5026Invalid Subscription ChannelInvalid subscription channel
5034Invalid JsonInvalid JSON format in the request body
5035Missing Signature HeadersSignature headers missing (X-Signature-Ed25519, X-Signature-Timestamp)
5036Timestamp Too OldRequest timestamp is too old (more than 5 minutes)
5037Invalid SignatureInvalid request signature
CodeDescriptionMeaning
5101Invalid Message FormatCheck the JSON format and action field
5102Token RequiredAdd the token field to the auth message
5107Not AuthenticatedSend an auth message before other actions
5108Invalid TokenCheck your WebSocket token
5109Connection BlockedContact an administrator
5117Authentication FailedInternal error. Try again later
5127ConnectedInformational code, no action required
5128Auth SuccessInformational code, no action required
5129PongInformational code, no action required
5130Subscription DeniedNo access to this data channel
5131SubscribedInformational code, no action required
5132UnsubscribedInformational code, no action required
5133Cache EmptyData not yet loaded, please wait
5134Empty SnapshotCache exists but no data for your subscriptions
CodeDescriptionMeaning
6000Unknown Error OccurredCheck logs, contact an administrator
6001Database Error Occurred. Please Try Again Later.Retry the request after a few seconds
6002Invalid Amount Specified.Check the amount format (must be a positive number)
6003Invalid Or Missing Parameters.Check required fields in the request
6004Requested Resource Not Found.Check the resource ID
6005Internal Server Error Occurred.Retry the request later
6006Discord Operation Failed.Check the bot’s permissions in Discord
6007Data Serialization Error.Contact an administrator
6008Guild Not FoundCheck the guildId in parameters
6009Discord Channel Not FoundCheck the channelId in the request
6010Business Not FoundCheck the businessId or businessName
6011Mafia Not FoundCheck the mafiaId or mafiaName
6012Transaction Not FoundCheck the transactionId
6013Item Not FoundCheck the itemName
6014Request Not Found Or ExpiredCheck the requestId
6015Duplicate Entry Found.Resource already exists
6016User Not FoundCheck the userId
6017Insufficient FundsUser has insufficient funds
6018Invalid Action SpecifiedCheck the action parameter
6019Missing Required FieldsFill in all required fields
6020Permission DeniedCheck the token and access permissions
6021Rate Limit ExceededWait for the limit to reset

ER:LC API Error Table

These error codes may be returned from the external ER:LC API when requesting */erlc/* endpoints.
CodeMeaning
0An unknown error occurred. If the error persists, contact ER:LC Russia support via a ticket (we will reach out to PRC support if the error occurs frequently).
1001Communication error with Roblox or the in-game private server.
1002An internal system error occurred.
CodeMeaning
2000You did not provide a server-key.
2001You provided a server-key in an invalid format.
2002You provided an invalid or expired server-key.
2003You provided an invalid global API key.
2004Your server-key is blocked from API access.
CodeMeaning
3001You did not specify a valid command in the request body.
3002The server you are trying to reach is currently offline (no players).
CodeMeaning
4001Request rate limit exceeded.
4002The command you are trying to execute is restricted.
4003The message you are trying to send is prohibited.
CodeMeaning
9998The resource you are accessing is restricted.
9999The module on the in-game server is outdated.

Handling Code 0

If you encounter an error with code 0 (Unknown Error) and it persists across multiple consecutive requests, create a ticket on our Discord server. Attach details of your request to the ticket so our team can investigate the issue.