URL Loading System Error Info Keys

Recognize these keys from the user info dictionary of error objects produced by URL Loading APIs.

Overview

These keys are only present in the NSURLErrorDomain.

Topics

Keys

NSURLErrorFailingURLErrorKey

The URL which caused a load to fail.

NSURLErrorFailingURLPeerTrustErrorKey

The state of a failed SSL handshake.

NSURLErrorFailingURLStringErrorKey

The URL which caused a load to fail.

NSURLErrorBackgroundTaskCancelledReasonKey

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.

NSURLErrorNetworkUnavailableReasonKey

The reason the network was unavailable for a task.

NSURLErrorNetworkUnavailableReason

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

Deprecated

NSErrorFailingURLStringKey

The URL that caused the error.

Deprecated

See Also

Errors

URL Loading System Error Codes

Error codes returned by URL loading APIs.