APIError
public enum APIError : Error
An error from the back-end API
-
An invalid endpoint was specified (could not produce a valid URL)
Declaration
Swift
case invalidEndpoint
-
A network error was encountered (specified in the associated error)
Declaration
Swift
case network(error: Error)
-
A non-2xx response was received (specified in the associated httpStatusCode)
Declaration
Swift
case badResponse(httpStatusCode: Int)
-
A 2xx response was received but there was no content available to decode a valid response object
Declaration
Swift
case noContent
-
A 2xx response was received with content but the content type of the response was not the expected type (e.g. application/json)
Declaration
Swift
case invalidContentType
-
An error was encountered while attempting to decode the content to produce a response object
Declaration
Swift
case decodingError