Global Variable


The reason the network was unavailable for a task.


let NSURLErrorNetworkUnavailableReasonKey: String


The value associated with this key is an NSNumber. For possible values, see NSURLErrorNetworkUnavailableReason.

See Also


let NSURLErrorFailingURLErrorKey: String

The URL which caused a load to fail.

let NSURLErrorFailingURLPeerTrustErrorKey: String

The state of a failed SSL handshake.

let NSURLErrorFailingURLStringErrorKey: String

The URL which caused a load to fail.

let NSURLErrorBackgroundTaskCancelledReasonKey: String

A key in the error dictionary that provides the reason for canceling a background task.

URL Session Background Task Cancellation Reasons

Reasons that indicate why the system canceled a background task.

enum URLError.NetworkUnavailableReason

An enumeration of reasons explaining why a task couldn’t satisfy networking constraints.