---
title: userDeclinedInvite
framework: homekit
role: symbol
role_heading: Type Property
path: homekit/hmerror/userdeclinedinvite
---

# userDeclinedInvite

An error indicating the user declined the invitation.

## Declaration

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

## See Also

### Detecting user errors

- [userDeclinedAddingUser](homekit/hmerror/userdeclinedaddinguser.md)
- [userDeclinedRemovingUser](homekit/hmerror/userdeclinedremovinguser.md)
- [userIDNotEmailAddress](homekit/hmerror/useridnotemailaddress.md)
- [userManagementFailed](homekit/hmerror/usermanagementfailed.md)
