---
title: homeAccessNotAuthorized
framework: homekit
role: symbol
role_heading: Type Property
path: homekit/hmerror/homeaccessnotauthorized
---

# homeAccessNotAuthorized

An error indicating access to the home is not authorized.

## Declaration

```swift
static var homeAccessNotAuthorized: HMError.Code { get }
```

## Mentioned in

Enabling HomeKit in your app

## See Also

### Detecting authorization errors

- [invalidOrMissingAuthorizationData](homekit/hmerror/invalidormissingauthorizationdata.md)
- [locationForHomeDisabled](homekit/hmerror/locationforhomedisabled.md)
- [insufficientPrivileges](homekit/hmerror/insufficientprivileges.md)
- [messageAuthenticationFailed](homekit/hmerror/messageauthenticationfailed.md)
- [notAuthorizedForLocationServices](homekit/hmerror/notauthorizedforlocationservices.md)
- [notAuthorizedForMicrophoneAccess](homekit/hmerror/notauthorizedformicrophoneaccess.md)
- [notSignedIntoiCloud](homekit/hmerror/notsignedintoicloud.md)
- [ownershipFailure](homekit/hmerror/ownershipfailure.md)
- [securityFailure](homekit/hmerror/securityfailure.md)
