Class CommonErrorCodes
Common error codes.
Namespace: Unity.Services.Core
Syntax
public static class CommonErrorCodes
Fields
ApiMissing
The API does not exist.
Declaration
public const int ApiMissing = 4
Field Value
Type | Description |
---|---|
Int32 |
Forbidden
User does not have permission to perform the requested operation.
Declaration
public const int Forbidden = 53
Field Value
Type | Description |
---|---|
Int32 |
InvalidRequest
The request was understood but the API refused to process it because something about it was invalid.
Declaration
public const int InvalidRequest = 55
Field Value
Type | Description |
---|---|
Int32 |
InvalidToken
The authentication token is malformed or invalid.
Declaration
public const int InvalidToken = 51
Field Value
Type | Description |
---|---|
Int32 |
NotFound
The requested resource was not found.
Declaration
public const int NotFound = 54
Field Value
Type | Description |
---|---|
Int32 |
RequestRejected
The request was rejected. Typically returned when the request was rejected before any reaching the API. See title/details for more information.
Declaration
public const int RequestRejected = 5
Field Value
Type | Description |
---|---|
Int32 |
ServiceUnavailable
Service is unavailable. Typically returned when the service is overloaded.
Declaration
public const int ServiceUnavailable = 3
Field Value
Type | Description |
---|---|
Int32 |
Timeout
The request timed out because no response was received in the alotted time.
Declaration
public const int Timeout = 2
Field Value
Type | Description |
---|---|
Int32 |
TokenExpired
The authentication token is expired.
Declaration
public const int TokenExpired = 52
Field Value
Type | Description |
---|---|
Int32 |
TooManyRequests
Request was rate limited. The client is making requests too frequently.
Declaration
public const int TooManyRequests = 50
Field Value
Type | Description |
---|---|
Int32 |
TransportError
DNS, TLS, and other transport errors that result in no valid HTTP response.
Declaration
public const int TransportError = 1
Field Value
Type | Description |
---|---|
Int32 |
Unknown
Unable to determine what the error is.
Declaration
public const int Unknown = 0
Field Value
Type | Description |
---|---|
Int32 |