> Documentation index: https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/HomeError/llms.txt

    enum Reason

    extension HomeError.Reason : Equatable, Hashable, Sendable, SendableMetatype

Structured error reason provided by the backend (AIP-193 ErrorInfo), categorized by
canonical status code.

Canonical status code to reason mappings and string constants are defined in:
`//depot/google3/assistant/verticals/homeautomation/server/utils/partner_error_utils.cc`
- `


  ### [cancelled(_:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/HomeError/Reason.md.txt#/s:13GoogleHomeSDK0B5ErrorV6ReasonO9cancelledyAeA09CancelledE0VcAEmF)


  ` Undocumented

  #### Declaration

  Swift

      case cancelled(CancelledReason)

- `


  ### [unknown(_:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/HomeError/Reason.md.txt#/s:13GoogleHomeSDK0B5ErrorV6ReasonO7unknownyAeA07UnknownE0VcAEmF)


  ` Undocumented

  #### Declaration

  Swift

      case unknown(UnknownReason)

- `


  ### [invalidArgument(_:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/HomeError/Reason.md.txt#/s:13GoogleHomeSDK0B5ErrorV6ReasonO15invalidArgumentyAeA07InvalidgE0VcAEmF)


  ` Undocumented

  #### Declaration

  Swift

      case invalidArgument(InvalidArgumentReason)

- `


  ### [deadlineExceeded(_:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/HomeError/Reason.md.txt#/s:13GoogleHomeSDK0B5ErrorV6ReasonO16deadlineExceededyAeA08DeadlinegE0VcAEmF)


  ` Undocumented

  #### Declaration

  Swift

      case deadlineExceeded(DeadlineExceededReason)

- `


  ### [notFound(_:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/HomeError/Reason.md.txt#/s:13GoogleHomeSDK0B5ErrorV6ReasonO8notFoundyAeA03NotgE0VcAEmF)


  ` Undocumented

  #### Declaration

  Swift

      case notFound(NotFoundReason)

- `


  ### [permissionDenied(_:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/HomeError/Reason.md.txt#/s:13GoogleHomeSDK0B5ErrorV6ReasonO16permissionDeniedyAeA010PermissiongE0VcAEmF)


  ` Undocumented

  #### Declaration

  Swift

      case permissionDenied(PermissionDeniedReason)

- `


  ### [resourceExhausted(_:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/HomeError/Reason.md.txt#/s:13GoogleHomeSDK0B5ErrorV6ReasonO17resourceExhaustedyAeA08ResourcegE0VcAEmF)


  ` Undocumented

  #### Declaration

  Swift

      case resourceExhausted(ResourceExhaustedReason)

- `


  ### [failedPrecondition(_:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/HomeError/Reason.md.txt#/s:13GoogleHomeSDK0B5ErrorV6ReasonO18failedPreconditionyAeA06FailedgE0VcAEmF)


  ` Undocumented

  #### Declaration

  Swift

      case failedPrecondition(FailedPreconditionReason)

- `


  ### [unimplemented(_:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/HomeError/Reason.md.txt#/s:13GoogleHomeSDK0B5ErrorV6ReasonO13unimplementedyAeA013UnimplementedE0VcAEmF)


  ` Undocumented

  #### Declaration

  Swift

      case unimplemented(UnimplementedReason)

- `


  ### [internalError(_:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/HomeError/Reason.md.txt#/s:13GoogleHomeSDK0B5ErrorV6ReasonO08internalD0yAeA08InternalE0VcAEmF)


  ` Undocumented

  #### Declaration

  Swift

      case internalError(InternalReason)

- `


  ### [unavailable(_:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/HomeError/Reason.md.txt#/s:13GoogleHomeSDK0B5ErrorV6ReasonO11unavailableyAeA011UnavailableE0VcAEmF)


  ` Undocumented

  #### Declaration

  Swift

      case unavailable(UnavailableReason)

- `


  ### [unauthenticated(_:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/HomeError/Reason.md.txt#/s:13GoogleHomeSDK0B5ErrorV6ReasonO15unauthenticatedyAeA015UnauthenticatedE0VcAEmF)


  ` Undocumented

  #### Declaration

  Swift

      case unauthenticated(UnauthenticatedReason)

- `


  ### [other(code:rawValue:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/HomeError/Reason.md.txt#/s:13GoogleHomeSDK0B5ErrorV6ReasonO5otheryAeC4CodeO_SStcAEmF)


  ` Undocumented

  #### Declaration

  Swift

      case other(code: HomeError.Code, rawValue: String)

- `


  ### [rawValue](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/HomeError/Reason.md.txt#/s:13GoogleHomeSDK0B5ErrorV6ReasonO8rawValueSSvp)


  ` The underlying raw string reason from the server (e.g. "CAMERA_TURNED_OFF").

  #### Declaration

  Swift

      var rawValue: String { get }