---
title: securityFailure
framework: homekit
role: symbol
role_heading: Type Property
path: homekit/hmerror/securityfailure
---

# securityFailure

A security failure.

## Declaration

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

## See Also

### Detecting authorization errors

- [invalidOrMissingAuthorizationData](homekit/hmerror/invalidormissingauthorizationdata.md)
- [locationForHomeDisabled](homekit/hmerror/locationforhomedisabled.md)
- [homeAccessNotAuthorized](homekit/hmerror/homeaccessnotauthorized.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)
