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

# HMError.Code.messageAuthenticationFailed

A message authentication failure.

## Declaration

```swift
case messageAuthenticationFailed
```

## 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.notAuthorizedForLocationServices](homekit/hmerror/code/notauthorizedforlocationservices.md)
- [HMError.Code.notAuthorizedForMicrophoneAccess](homekit/hmerror/code/notauthorizedformicrophoneaccess.md)
- [HMError.Code.notSignedIntoiCloud](homekit/hmerror/code/notsignedintoicloud.md)
- [HMError.Code.ownershipFailure](homekit/hmerror/code/ownershipfailure.md)
- [HMError.Code.securityFailure](homekit/hmerror/code/securityfailure.md)
