HTTPError
public enum HTTPError : Error
HTTP Errors
-
Bad Request - 400
Declaration
Swift
case badRequest(message: String?) -
Unauthorized Access - 401
Declaration
Swift
case unauthorized(message: String?) -
Forbidden Access - 403
Declaration
Swift
case forbidden(message: String?) -
Requested resource could not be found - 404
Declaration
Swift
case notFound(message: String?) -
A request method is not supported - 405
Declaration
Swift
case methodNotAllowed(message: String?) -
Server failed to fulfill a request - 5xx
Declaration
Swift
case serverFailure(message: String?) -
Unknown Error
Declaration
Swift
case unknown(Int?) -
JSON Parsing error.
Declaration
Swift
case parsingJSONFailure(error: Error) -
An invalid request
Declaration
Swift
case invalidRequest(message: String?) -
No Response
Declaration
Swift
case noResponse -
Non HTTP Response
Declaration
Swift
case nonHTTPResponse(response: URLResponse) -
No Data
Declaration
Swift
case noData
-
A localized error description
Declaration
Swift
public var errorDescription: String? { get }
HTTPError Enumeration Reference