---
title: URL Session Background Task Cancellation Reasons
framework: foundation
role: collectionGroup
role_heading: API Collection
path: foundation/url-session-background-task-cancellation-reasons
---

# URL Session Background Task Cancellation Reasons

Reasons that indicate why the system canceled a background task.

## Topics

### Cancellation reasons

- [NSURLErrorCancelledReasonBackgroundUpdatesDisabled](foundation/nsurlerrorcancelledreasonbackgroundupdatesdisabled.md)
- [NSURLErrorCancelledReasonInsufficientSystemResources](foundation/nsurlerrorcancelledreasoninsufficientsystemresources.md)
- [NSURLErrorCancelledReasonUserForceQuitApplication](foundation/nsurlerrorcancelledreasonuserforcequitapplication.md)

## See Also

### Keys

- [NSURLErrorFailingURLErrorKey](foundation/nsurlerrorfailingurlerrorkey.md)
- [NSURLErrorFailingURLPeerTrustErrorKey](foundation/nsurlerrorfailingurlpeertrusterrorkey.md)
- [NSURLErrorFailingURLStringErrorKey](foundation/nsurlerrorfailingurlstringerrorkey.md)
- [NSURLErrorBackgroundTaskCancelledReasonKey](foundation/nsurlerrorbackgroundtaskcancelledreasonkey.md)
- [NSURLErrorNetworkUnavailableReasonKey](foundation/nsurlerrornetworkunavailablereasonkey.md)
- [URLError.NetworkUnavailableReason](foundation/urlerror/networkunavailablereason-swift.enum.md)
