cannotConnectToHost
An attempt to connect to a host failed.
Declaration
static var cannotConnectToHost: URLError.Code { get }Discussion
This can occur when a host name resolves, but the host is down or may not be accepting connections on a certain port.
See Also
Error codes
appTransportSecurityRequiresSecureConnectionbackgroundSessionInUseByAnotherProcessbackgroundSessionRequiresSharedContainerbackgroundSessionWasDisconnectedbadServerResponsebadURLcallIsActivecancelledcannotCloseFilecannotCreateFilecannotDecodeContentDatacannotDecodeRawDatacannotFindHostcannotLoadFromNetworkcannotMoveFile