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

# code

The code indicating whether you successfully handled the intent.

## Declaration

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

## Discussion

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

## See Also

### Getting the Response Code

- [INSendMessageIntentResponseCode](intents/insendmessageintentresponsecode.md)
