APIError

ENUM

# APIError

public enum APIError: Error

# Cases

# apiServerError(statusCode:message:requestURL:)

case apiServerError(statusCode: Int, message: String?, requestURL: URL?)

The request response is a server error (5xx).

# apiClientError(clientErrorData:requestId:message:requestURL:)

case apiClientError(clientErrorData: ClientErrorData?, requestId: String, message: String?, requestURL: URL?)

The request response is a client error (4xx).

# apiMalformedJSON(_:_:)

case apiMalformedJSON(Error?, URL?)

JSON received as a response is invalid.

# executionError(_:_:)

case executionError(String, URL?)