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

# code

The code indicating whether you successfully handled the intent.

## Declaration

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

## Discussion

Discussion The value of this property is set automatically at initialization time and can’t be changed later.

## See Also

### Accessing the Response Information

- [INBookRestaurantReservationIntentCode](intents/inbookrestaurantreservationintentcode.md)
- [userBooking](intents/inbookrestaurantreservationintentresponse/userbooking.md)
