No overview available.
SDKs
- iOS 7.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Xcode 9.0+
Framework
- Foundation
Declaration
struct URLError.Code
No overview available.
SDKs
Framework
struct URLError.Code
static var app Transport Security Requires Secure Connection: URLError .Code
App Transport Security disallowed a connection because there is no secure network connection.
static var background Session In Use By Another Process: URLError .Code
An app or app extension attempted to connect to a background session that is already connected to a process.
static var background Session Requires Shared Container: URLError .Code
The shared container identifier of the URL session configuration is needed but has not been set.
static var background Session Was Disconnected: URLError .Code
The app is suspended or exits while a background data task is processing.
static var bad Server Response: URLError .Code
The URL Loading system received bad data from the server.
static var bad URL: URLError .Code
A malformed URL prevented a URL request from being initiated.
static var call Is Active: URLError .Code
A connection was attempted while a phone call is active on a network that does not support simultaneous phone and data communication (EDGE or GPRS).
static var cancelled: URLError .Code
An asynchronous load has been canceled.
static var cannot Close File: URLError .Code
A download task couldn’t close the downloaded file on disk.
static var cannot Connect To Host: URLError .Code
An attempt to connect to a host failed.
static var cannot Create File: URLError .Code
A download task couldn’t create the downloaded file on disk because of an I/O failure.
static var cannot Decode Content Data: URLError .Code
Content data received during a connection request had an unknown content encoding.
static var cannot Decode Raw Data: URLError .Code
Content data received during a connection request could not be decoded for a known content encoding.
static var cannot Find Host: URLError .Code
The host name for a URL could not be resolved.
static var cannot Load From Network: URLError .Code
A request to load an item only from the cache could not be satisfied.
static var cannot Move File: URLError .Code
A download task was unable to move a downloaded file on disk.
static var cannot Open File: URLError .Code
A download task was unable to open the downloaded file on disk.
static var cannot Parse Response: URLError .Code
A task could not parse a response.
static var cannot Remove File: URLError .Code
A download task was unable to remove a downloaded file from disk.
static var cannot Write To File: URLError .Code
A download task was unable to write to the downloaded file on disk.
static var client Certificate Rejected: URLError .Code
A server certificate was rejected.
static var client Certificate Required: URLError .Code
A client certificate was required to authenticate an SSL connection during a request.
static var data Length Exceeds Maximum: URLError .Code
The length of the resource data exceeds the maximum allowed.
static var data Not Allowed: URLError .Code
The cellular network disallowed a connection.
static var dns Lookup Failed: URLError .Code
The host address could not be found via DNS lookup.
static var download Decoding Failed Mid Stream: URLError .Code
A download task failed to decode an encoded file during the download.
static var download Decoding Failed To Complete: URLError .Code
A download task failed to decode an encoded file after downloading.
static var file Does Not Exist: URLError .Code
A file does not exist.
static var file Is Directory: URLError .Code
A request for an FTP file resulted in the server responding that the file is not a plain file, but a directory.
static var http Too Many Redirects: URLError .Code
A redirect loop has been detected or the threshold for number of allowable redirects has been exceeded (currently 16).
static var international Roaming Off: URLError .Code
The attempted connection required activating a data context while roaming, but international roaming is disabled.
static var network Connection Lost: URLError .Code
A client or server connection was severed in the middle of an in-progress load.
static var no Permissions To Read File: URLError .Code
A resource couldn’t be read because of insufficient permissions.
static var not Connected To Internet: URLError .Code
A network resource was requested, but an internet connection has not been established and cannot be established automatically.
static var redirect To Non Existent Location: URLError .Code
A redirect was specified by way of server response code, but the server did not accompany this code with a redirect URL.
static var request Body Stream Exhausted: URLError .Code
A body stream is needed but the client did not provide one.
static var resource Unavailable: URLError .Code
A requested resource couldn’t be retrieved.
static var secure Connection Failed: URLError .Code
An attempt to establish a secure connection failed for reasons that can’t be expressed more specifically.
static var server Certificate Has Bad Date: URLError .Code
A server certificate had a date which indicates it has expired, or is not yet valid.
static var server Certificate Has Unknown Root: URLError .Code
A server certificate was not signed by any root server.
static var server Certificate Not Yet Valid: URLError .Code
A server certificate is not yet valid.
static var server Certificate Untrusted: URLError .Code
A server certificate was signed by a root server that isn’t trusted.
static var timed Out: URLError .Code
An asynchronous operation timed out.
static var unknown: URLError .Code
The URL Loading System encountered an error that it can’t interpret.
static var unsupported URL: URLError .Code
A properly formed URL couldn’t be handled by the framework.
static var user Authentication Required: URLError .Code
Authentication is required to access a resource.
static var user Cancelled Authentication: URLError .Code
An asynchronous request for authentication has been canceled by the user.
static var zero Byte Resource: URLError .Code
A server reported that a URL has a non-zero content length, but terminated the network connection gracefully without sending any data.
typealias URLError .Code .Raw Value
The type of the error code’s underlying raw value.
static func != (URLError .Code, URLError .Code) -> Bool
Returns a Boolean value indicating whether two values are not equal.
func hash(into: inout Hasher)
Hashes the essential components of this value by feeding them into the given hasher.
static var app Transport Security Requires Secure Connection: URLError .Code
App Transport Security disallowed a connection because there is no secure network connection.
static var background Session In Use By Another Process: URLError .Code
An app or app extension attempted to connect to a background session that is already connected to a process.
static var background Session Requires Shared Container: URLError .Code
The shared container identifier of the URL session configuration is needed but hasn’t been set.
static var background Session Was Disconnected: URLError .Code
The app is suspended or exits while a background data task is processing.
static var bad Server Response: URLError .Code
The URL Loading System received bad data from the server.
static var bad URL: URLError .Code
A malformed URL prevented a URL request from being initiated.
static var call Is Active: URLError .Code
A connection was attempted while a phone call is active on a network that doesn’t support simultaneous phone and data communication, such as EDGE or GPRS.
static var cancelled: URLError .Code
An asynchronous load has been canceled.
static var cannot Close File: URLError .Code
A download task couldn’t close the downloaded file on disk.
static var cannot Connect To Host: URLError .Code
An attempt to connect to a host failed.
static var cannot Create File: URLError .Code
A download task couldn’t create the downloaded file on disk because of an I/O failure.
static var cannot Decode Content Data: URLError .Code
Content data received during a connection request had an unknown content encoding.
static var cannot Decode Raw Data: URLError .Code
Content data received during a connection request couldn’t be decoded for a known content encoding.
static var cannot Find Host: URLError .Code
The host name for a URL couldn’t be resolved.
static var cannot Load From Network: URLError .Code
A request to load an item only from the cache could not be satisfied.
static var cannot Move File: URLError .Code
A download task was unable to move a downloaded file on disk.
static var cannot Open File: URLError .Code
A download task was unable to open the downloaded file on disk.
static var cannot Parse Response: URLError .Code
A task couldn’t parse a response.
static var cannot Remove File: URLError .Code
A download task was unable to remove a downloaded file from disk.
static var cannot Write To File: URLError .Code
A download task was unable to write to the downloaded file on disk.
static var client Certificate Rejected: URLError .Code
A server certificate was rejected.
static var client Certificate Required: URLError .Code
A client certificate was required to authenticate an SSL connection during a request.
static var data Length Exceeds Maximum: URLError .Code
The length of the resource data exceeds the maximum allowed.
static var data Not Allowed: URLError .Code
The cellular network disallowed a connection.
static var dns Lookup Failed: URLError .Code
The host address couldn’t be found via DNS lookup.
static var download Decoding Failed Mid Stream: URLError .Code
A download task failed to decode an encoded file during the download.
static var download Decoding Failed To Complete: URLError .Code
A download task failed to decode an encoded file after downloading.
static var file Does Not Exist: URLError .Code
The specified file doesn’t exist.
static var file Is Directory: URLError .Code
A request for an FTP file resulted in the server responding that the file is not a plain file, but a directory.
static var http Too Many Redirects: URLError .Code
A redirect loop has been detected or the threshold for number of allowable redirects has been exceeded (currently 16).
static var international Roaming Off: URLError .Code
The attempted connection required activating a data context while roaming, but international roaming is disabled.
static var network Connection Lost: URLError .Code
A client or server connection was severed in the middle of an in-progress load.
static var no Permissions To Read File: URLError .Code
A resource couldn’t be read because of insufficient permissions.
static var not Connected To Internet: URLError .Code
A network resource was requested, but an internet connection hasn’t been established and can’t be established automatically.
static var redirect To Non Existent Location: URLError .Code
A redirect was specified by way of server response code, but the server didn’t accompany this code with a redirect URL.
static var request Body Stream Exhausted: URLError .Code
A body stream is needed but the client didn’t provide one.
static var resource Unavailable: URLError .Code
A requested resource couldn’t be retrieved.
static var server Certificate Has Bad Date: URLError .Code
A server certificate is expired, or is not yet valid.
static var server Certificate Has Unknown Root: URLError .Code
A server certificate wasn’t signed by any root server.
static var server Certificate Not Yet Valid: URLError .Code
A server certificate isn’t valid yet.
static var server Certificate Untrusted: URLError .Code
A server certificate was signed by a root server that isn’t trusted.
static var secure Connection Failed: URLError .Code
An attempt to establish a secure connection failed for reasons that can’t be expressed more specifically.
static var timed Out: URLError .Code
An asynchronous operation timed out.
static var unknown: URLError .Code
The URL Loading System encountered an error that it can’t interpret.
static var unsupported URL: URLError .Code
A properly formed URL couldn’t be handled by the framework.
static var user Authentication Required: URLError .Code
Authentication is required to access a resource.
static var user Cancelled Authentication: URLError .Code
An asynchronous request for authentication has been canceled by the user.
static var zero Byte Resource: URLError .Code
A server reported that a URL has a non-zero content length, but terminated the network connection gracefully without sending any data.