Class ErrorCodes
Constants class of error codes for ApiException
Namespace: Seltzr.Exceptions
Assembly: Seltzr.dll
Syntax
C#
public static class ErrorCodes
Fields
Generic error code indicating that the request has failed
C#
public const int ApiError = 1
Field Value
Type | Description |
---|---|
Int32 |
Error code indicating that authentication has failed
C#
public const int AuthFailed = 2
Field Value
Type | Description |
---|---|
Int32 |
Error code indicating that a required condition was not met
C#
public const int ConditionFailed = 4
Field Value
Type | Description |
---|---|
Int32 |
Error code indicating that authentication succeeded, but the user does not have the required permissions to access this route.
C#
public const int Forbidden = 7
Field Value
Type | Description |
---|---|
Int32 |
Error code indicating that the operation failed
C#
public const int OperationFailed = 5
Field Value
Type | Description |
---|---|
Int32 |
Error code indicating that parsing has failed
C#
public const int ParsingFailed = 3
Field Value
Type | Description |
---|---|
Int32 |
Error code indicating that writing the API response failed
C#
public const int WritingFailed = 6
Field Value
Type | Description |
---|---|
Int32 |