---
title: accessoryErrorCode
framework: HomeExtensions
role: symbol
role_heading: Type Property
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+]
path: homeextensions/homecontext/metadatakey/accessoryerrorcode
---

# accessoryErrorCode

The key for the code of the accessory’s top error.

## Declaration

```swift
static let accessoryErrorCode: String
```

## Discussion

Discussion This key is present only in troubleshooting content, and only when there’s an error to report.

## See Also

### Keys

- [accessoryErrorDetails](homeextensions/homecontext/metadatakey/accessoryerrordetails.md)
- [helpGuideContentId](homeextensions/homecontext/metadatakey/helpguidecontentid.md)
