---
title: CLError.Code.denied
framework: corelocation
role: symbol
role_heading: Case
path: corelocation/clerror-swift.struct/code/denied
---

# CLError.Code.denied

A constant that indicates the user denied access to the location service.

## Declaration

```swift
case denied
```

## See Also

### Getting general errors

- [CLError.Code.locationUnknown](corelocation/clerror-swift.struct/code/locationunknown.md)
- [CLError.Code.promptDeclined](corelocation/clerror-swift.struct/code/promptdeclined.md)
- [CLError.Code.network](corelocation/clerror-swift.struct/code/network.md)
- [CLError.Code.headingFailure](corelocation/clerror-swift.struct/code/headingfailure.md)
- [CLError.Code.rangingUnavailable](corelocation/clerror-swift.struct/code/rangingunavailable.md)
- [CLError.Code.rangingFailure](corelocation/clerror-swift.struct/code/rangingfailure.md)
