<!--
{
  "availability" : [
    "iOS: 16.1.0 -",
    "iPadOS: 16.1.0 -",
    "macCatalyst: 16.1.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.1.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Matter",
  "identifier" : "/documentation/Matter/MTRError/Code",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Matter"
    ],
    "preciseIdentifier" : "c:@E@MTRErrorCode"
  },
  "title" : "MTRError.Code"
}
-->

# MTRError.Code

```
enum Code
```

## Topics

### Enumeration Cases

[`case bufferTooSmall`](/documentation/Matter/MTRError/Code/bufferTooSmall)

[`case cancelled`](/documentation/Matter/MTRError/Code/cancelled)

[`case dnssdUnauthorized`](/documentation/Matter/MTRError/Code/dnssdUnauthorized)

[`case fabricExists`](/documentation/Matter/MTRError/Code/fabricExists)

[`case generalError`](/documentation/Matter/MTRError/Code/generalError)

[`case integrityCheckFailed`](/documentation/Matter/MTRError/Code/integrityCheckFailed)

[`case invalidArgument`](/documentation/Matter/MTRError/Code/invalidArgument)

[`case invalidIntegerValue`](/documentation/Matter/MTRError/Code/invalidIntegerValue)

[`case invalidMessageLength`](/documentation/Matter/MTRError/Code/invalidMessageLength)

[`case invalidState`](/documentation/Matter/MTRError/Code/invalidState)

[`case invalidStringLength`](/documentation/Matter/MTRError/Code/invalidStringLength)

[`case schemaMismatch`](/documentation/Matter/MTRError/Code/schemaMismatch)

[`case timeout`](/documentation/Matter/MTRError/Code/timeout)

[`case tlvDecodeFailed`](/documentation/Matter/MTRError/Code/tlvDecodeFailed)

[`case unknownSchema`](/documentation/Matter/MTRError/Code/unknownSchema)

[`case wrongAddressType`](/documentation/Matter/MTRError/Code/wrongAddressType)

### Enumeration Cases

[`case accessDenied`](/documentation/Matter/MTRError/Code/accessDenied)

Access to some resource was denied.

[`case busy`](/documentation/Matter/MTRError/Code/busy)

A request was made to some entity, and that entity cannot handle the
request right now, but might be able to at a different point in time.

[`case notFound`](/documentation/Matter/MTRError/Code/notFound)

Something was requested that could not be located.

### Initializers

[`init?(rawValue: Int)`](/documentation/Matter/MTRError/Code/init(rawValue:))

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Equatable`](/documentation/Swift/Equatable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Sendable`](/documentation/Swift/Sendable)

[`Hashable`](/documentation/Swift/Hashable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)