---
title: cannotLoadFromNetwork
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/urlerror/code/cannotloadfromnetwork
---

# cannotLoadFromNetwork

A request to load an item only from the cache could not be satisfied.

## Declaration

```swift
static var cannotLoadFromNetwork: URLError.Code { get }
```

## Discussion

Discussion This error is sent when the task needs to load from the network, but is blocked from doing so by the “load only from cache” directive.

## See Also

### Error codes

- [appTransportSecurityRequiresSecureConnection](foundation/urlerror/code/apptransportsecurityrequiressecureconnection.md)
- [backgroundSessionInUseByAnotherProcess](foundation/urlerror/code/backgroundsessioninusebyanotherprocess.md)
- [backgroundSessionRequiresSharedContainer](foundation/urlerror/code/backgroundsessionrequiressharedcontainer.md)
- [backgroundSessionWasDisconnected](foundation/urlerror/code/backgroundsessionwasdisconnected.md)
- [badServerResponse](foundation/urlerror/code/badserverresponse.md)
- [badURL](foundation/urlerror/code/badurl.md)
- [callIsActive](foundation/urlerror/code/callisactive.md)
- [cancelled](foundation/urlerror/code/cancelled.md)
- [cannotCloseFile](foundation/urlerror/code/cannotclosefile.md)
- [cannotConnectToHost](foundation/urlerror/code/cannotconnecttohost.md)
- [cannotCreateFile](foundation/urlerror/code/cannotcreatefile.md)
- [cannotDecodeContentData](foundation/urlerror/code/cannotdecodecontentdata.md)
- [cannotDecodeRawData](foundation/urlerror/code/cannotdecoderawdata.md)
- [cannotFindHost](foundation/urlerror/code/cannotfindhost.md)
- [cannotMoveFile](foundation/urlerror/code/cannotmovefile.md)
