Enum TorBoxErrorCode
Enumerates the known error codes returned by the TorBox API.
public enum TorBoxErrorCode
Fields
ActiveLimit = 10The active download limit has been reached.
BadToken = 4The provided authentication token is invalid or expired.
BannedContentDetected = 12Banned content was detected in the requested item.
BannedUser = 20The user account has been banned.
BreachOfTos = 9The action constitutes a breach of the terms of service.
CouldNotPerformAction = 13The requested action could not be performed.
DatabaseError = 1A database error occurred on the server.
DeviceAlreadyAuthed = 16The device has already been authenticated.
DownloadTooLarge = 18The requested download exceeds the maximum allowed size.
DuplicateItem = 8A duplicate item was detected.
InvalidDevice = 15The specified device is invalid.
InvalidOption = 5An invalid option or parameter was supplied.
ItemNotFound = 14The requested item was not found.
MissingRequiredOption = 19A required option or parameter is missing.
NoAuth = 3No authentication credentials were provided.
PermissionDenied = 6The authenticated user does not have permission for this action.
PlanRestrictedFeature = 7The requested feature is restricted to a higher-tier plan.
SearchError = 21An error occurred during a search operation.
SeedingLimit = 11The seeding limit has been reached.
ServerError = 22An internal server error occurred.
TooManyRequests = 17Too many requests have been made; rate limiting is in effect.
Unknown = 0An unknown or unmapped error code was returned.
UnknownError = 2An unspecified server-side error occurred.
Remarks
Use these codes to programmatically distinguish between different failure modes when handling TorBoxException.