BoxCastError
public enum BoxCastError : Error
Errors that occured accessing BoxCast API resources.
-
The request could not be understood due to malformed syntax.
Declaration
Swift
case badRequest
-
The request requires user authentication.
Declaration
Swift
case unauthorized
-
The access token provided is expired, revoked, malformed or invalid for other reasons.
Declaration
Swift
case invalidToken
-
Payment is required to complete the request.
Declaration
Swift
case paymentRequired
-
The request is forbidden.
Declaration
Swift
case forbidden
-
The requested resource was not found.
Declaration
Swift
case notFound
-
The request could not be completed due to a conflict with the current state of the resource.
Declaration
Swift
case conflict
-
The requested resource is no longer available.
Declaration
Swift
case gone
-
The request could not be processed.
Declaration
Swift
case unprocessableEntity
-
The user has sent too many requests in a given amount of time.
Declaration
Swift
case tooManyRequests
-
The server encountered an unexpected condition which prevented it from fulfilling the request.
Declaration
Swift
case internalServerError
-
The server does not support the functionality required to fulfill the request.
Declaration
Swift
case notImplemented
-
The server, while acting as a gateway or proxy, received an invalid response from the upstream server it accessed in attempting to fulfill the request.
Declaration
Swift
case badGateway
-
The server is currently unable to handle the request due to a temporary overloading or maintenance of the server.
Declaration
Swift
case serviceUnavailable
-
The server, while acting as a gateway or proxy, did not receive a timely response from the upstream server specified by the URI (e.g. HTTP, FTP, LDAP) or some other auxiliary server (e.g. DNS) it needed to access in attempting to complete the request.
Declaration
Swift
case gatewayTimeout
-
The request is missing a required parameter, includes an unsupported parameter value, or is otherwise malformed.
Declaration
Swift
case invalidRequest
-
Client authentication failed (e.g., unknown client, no client authentication included, or unsupported authentication method).
Declaration
Swift
case invalidClient
-
The provided authorization grant is invalid, expired or revoked.
Declaration
Swift
case invalidGrant
-
The authenticated client is not authorized to use this authorization grant type.
Declaration
Swift
case unauthorizedClient
-
The authorization grant type is not supported by the authorization server.
Declaration
Swift
case unsupportedGrantType
-
Object serialization error.
Declaration
Swift
case objectSerialization
-
The resource was unable to be serialized.
Declaration
Swift
case serializationError
-
The URL provided was invalid.
Declaration
Swift
case invalidURL
-
Unknown error.
Declaration
Swift
case unknown