---
title: code
framework: musickit
role: symbol
role_heading: Instance Property
path: musickit/musicdatarequest/error/code
---

# code

The specific code for the underlying cause of the error.

## Declaration

```swift
let code: Int
```
