APIError

ENUM

APIError

public enum APIError: Error, Equatable

Cases

apiNoDataReceived

case apiNoDataReceived

Request response code is 200 but there is no response data received or Data object is nil.

apiBadStatusCode(statusCode:message:)

case apiBadStatusCode(statusCode: Int, message: String?)

Request response code is different than 200.

apiCannotCreateRequest

case apiCannotCreateRequest

Cannot construct URLRequest from APIRequest.

apiMalformedJSON(message:)

case apiMalformedJSON(message: String?)

JSON received as a response is invalid.

apiRequestCannotCreateURL

case apiRequestCannotCreateURL

Cannot create URL instance.

apiInvalidSchemeInURL

case apiInvalidSchemeInURL

URL scheme component is empty or nil.

apiInvalidHostInURL

case apiInvalidHostInURL

URL host component is empty or nil.

apiNoClientSettings

case apiNoClientSettings

No client settings fetched from the server.

apiFailedRequest

case apiFailedRequest

Request returned APICallResult.failed result .