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

# code

The code indicating whether you successfully handled the intent.

## Declaration

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

## Discussion

Discussion This propertyue’s val is set at initialization and it can’t be changed later.

## See Also

### Getting the Response Code

- [INSearchForMessagesIntentResponseCode](intents/insearchformessagesintentresponsecode.md)
