---
title: code
framework: intents
role: symbol
role_heading: Instance Property
path: intents/insetmessageattributeintentresponse/code
---

# code

The code indicating whether you successfully handled the intent.

## Declaration

```swift
var code: INSetMessageAttributeIntentResponseCode { get }
```

## Discussion

Discussion This property’s value is set automatically at initialization and can’t be changed later.

## See Also

### Getting the Response Code

- [INSetMessageAttributeIntentResponseCode](intents/insetmessageattributeintentresponsecode.md)
