#[repr(i16)]
pub enum ErrorStatus {
Show 36 variants InternalFetch, InternalTimeout, InvalidParameters, InternalUnknown, Conflict, InvalidUser, AuthorizationFailed, InvalidAuthCode1, MessageSpam, InvalidCategory, Moderated1, Moderated2, AccountBlocked, InvalidHeader, InvalidScope, InvalidAccessToken, RateLimitExceeded, MissingChatPermission, InvalidShardValue, MissingShardTokenPermission, InvalidAuthCode2, UsedAuthCode, RefreshTokenExpired, InvalidRefreshToken, AccessTokenExpired, InvalidGrantType, InvalidRedirectUri, InvalidClientSecret, AccessTokenLimit, UnauthorizedScope, BannedInChannel, SlowMode, FollowerOnly, UnauthorizedHyperlink, ModeratedMessage, Unknown,
}
Expand description

Error codes returned by the Trovo api

Variants

InternalFetch

Internal service failed to fetch data. Please try again.

InternalTimeout

Internal server error. Try send the request again. In most cases, it is caused by timeout of an internal service.

InvalidParameters

Server received invalid parameters. Please check the params you requested.

InternalUnknown

Unknown or uncategorized internal server error. Please report to developer@trovo.live

Conflict

Conflict. Please try again.

InvalidUser

The user does not exist.

AuthorizationFailed

Authorization failed. Please double check your token or the auth status.

InvalidAuthCode1

Authorization Code doesn’t exist or has expired

MessageSpam

To avoid spam, one user cannot send the same message in 30 sec to a channel, or send more than 1 message in 1 sec across all platforms. Streamers, Mods and Admins does not have this limit. Give your chatbot mod access then you will not get this limit.

InvalidCategory

The category does not exist.

Moderated1

Content conflicts with Trovo moderation rule.

Moderated2

Content conflicts with Trovo moderation rule.

AccountBlocked

The user account has been blocked by Trovo. To unblock the user, please contact us at customer@trovo.live

InvalidHeader

Error in the request header.

InvalidScope

Please try again with a valid scope.

InvalidAccessToken

Double the access token you passed in is valid or not.

RateLimitExceeded

API rate limit exceeded. (You may apply for rate limit increase by contacting Trovo staff)

MissingChatPermission

No permission to send chats to this channel.

InvalidShardValue

Invalid shard value. (Please make sure total_shard > 0 and 0 <= current_shard < total_shard)

MissingShardTokenPermission

No permission to get the sharding token. Get shard token API is currently open to trusted developers only. You may email developer@trovo.live to get whitelisted.

InvalidAuthCode2

Authorization Code doesn’t exist or has expired

UsedAuthCode

Authorization Code has been used

RefreshTokenExpired

Refresh token has expired

InvalidRefreshToken

Invalid refresh token.

AccessTokenExpired

Access token has expired

InvalidGrantType

Invalid grant type

InvalidRedirectUri

Invalid Redirect URI

InvalidClientSecret

Invalid client secret

AccessTokenLimit

Access token num is greater than 50, you should wait for the old access token to expire before you can refresh again.

UnauthorizedScope

Scope is not authorized by the user.

BannedInChannel

The user is banned from chatting in this channel. Please contact the streamer/mods to unban the user.

SlowMode

Channel is currently in slow mode. Please follow the slow mode rule to chat.

FollowerOnly

The streamer has set the channel to be follower only chat. Please follow the channel to chat.

The user does not have permission to send hyperlinks in this channel. The channel is in block hyperlink mode. Please check the hyperlink mode rules.

ModeratedMessage

Your message was moderated due to conflicts with the channel’s moderation settings.

Unknown

Unknown or uncategorized error. Please report to developer@trovo.live.

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more