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

# HMError.Code.ownershipFailure

The ownership code did not match.

## Declaration

```swift
case ownershipFailure
```

## See Also

### Authorization errors

- [HMError.Code.invalidOrMissingAuthorizationData](homekit/hmerror/code/invalidormissingauthorizationdata.md)
- [HMError.Code.locationForHomeDisabled](homekit/hmerror/code/locationforhomedisabled.md)
- [HMError.Code.homeAccessNotAuthorized](homekit/hmerror/code/homeaccessnotauthorized.md)
- [HMError.Code.insufficientPrivileges](homekit/hmerror/code/insufficientprivileges.md)
- [HMError.Code.messageAuthenticationFailed](homekit/hmerror/code/messageauthenticationfailed.md)
- [HMError.Code.notAuthorizedForLocationServices](homekit/hmerror/code/notauthorizedforlocationservices.md)
- [HMError.Code.notAuthorizedForMicrophoneAccess](homekit/hmerror/code/notauthorizedformicrophoneaccess.md)
- [HMError.Code.notSignedIntoiCloud](homekit/hmerror/code/notsignedintoicloud.md)
- [HMError.Code.securityFailure](homekit/hmerror/code/securityfailure.md)
