NetworkError
public enum NetworkError: Error
The NetworkError
enum describes domain specific errors for the Network
class.
-
Indicates the response json could not be parsed.
Declaration
Swift
case invalidResponse
-
Indicates the response’s status code wasn’t included in the endpoint’s acceptable status codes.
Declaration
Swift
case unacceptableStatusCode(code: Int)