---
title: HMError.Code.accessDenied
framework: homekit
role: symbol
role_heading: Case
path: homekit/hmerror/code/accessdenied
---

# HMError.Code.accessDenied

An error indicating the current user doesn’t have privileges to perform the operation.

## Declaration

```swift
case accessDenied
```

## See Also

### Communication errors

- [HMError.Code.accessoryCommunicationFailure](homekit/hmerror/code/accessorycommunicationfailure.md)
- [HMError.Code.accessoryPairingFailed](homekit/hmerror/code/accessorypairingfailed.md)
- [HMError.Code.accessorySentInvalidResponse](homekit/hmerror/code/accessorysentinvalidresponse.md)
- [HMError.Code.clientRequestError](homekit/hmerror/code/clientrequesterror.md)
- [HMError.Code.communicationFailure](homekit/hmerror/code/communicationfailure.md)
- [HMError.Code.dataResetFailure](homekit/hmerror/code/dataresetfailure.md)
- [HMError.Code.timedOutWaitingForAccessory](homekit/hmerror/code/timedoutwaitingforaccessory.md)
