HTTPURLResponse
class HTTPURLResponse : URLResponse
-
A textual representation of this instance, suitable for debugging.
Declaration
Swift
open override var debugDescription: String
-
True if this response code is a member of the 1xx Informational set of codes; otherwise false
Declaration
Swift
public var isInformational: Bool
-
True if this response code is a member of the 2xx Success response codes; otherwise false
Declaration
Swift
public var isSuccess: Bool
-
True if this response code is a member of the 3xx Redirection response codes; otherwise false
Declaration
Swift
public var isRedirection: Bool
-
True if this response code is a member of the 4xx Client Error response codes; otherwise false
Declaration
Swift
public var isClientError: Bool
-
True if this response code is a member of the 5xx Server Error response codes; otherwise false
Declaration
Swift
public var isServerError: Bool