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

# code

The code that indicates success or failure when confirming or handling the intent.

## Declaration

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

## Discussion

Discussion Initializing the response sets the value of this property. You can’t change it.

## See Also

### Getting the Response Code

- [INListCarsIntentResponseCode](intents/inlistcarsintentresponsecode.md)
