RequestError
public enum RequestError : Error, Equatable
An error that occurs when making a ServiceRequest
-
Bad request (HTTP status 400)
Declaration
Swift
case httpBadRequest(request: URLRequest)
-
Unauthorized (HTTP status 401)
Declaration
Swift
case httpUnauthorized(request: URLRequest)
-
Not found (HTTP status 404)
Declaration
Swift
case httpNotFound(request: URLRequest)
-
Server error occured (HTTP status 500-599
Declaration
Swift
case httpServerError(request: URLRequest, httpStatus: Int)
-
Another HTTP error status code occurred (besides 400, 401, 404, and outside the 200-399 success code range)
Declaration
Swift
case otherHTTPError(request: URLRequest, httpStatus: Int)
-
A
URLError
occurred with the requestDeclaration
Swift
case urlError(request: URLRequest, error: URLError)
-
Another error occurred
Declaration
Swift
case other(request: URLRequest, message: String)