/**
 * @license
 * Copyright 2022-2025 Matter.js Authors
 * SPDX-License-Identifier: Apache-2.0
 */
import { MatterError } from "#general";
import { Status } from "../globals/Status.js";
const StatusCode = Status;
class StatusResponseError extends MatterError {
  constructor(message, code, clusterCode) {
    super();
    this.code = code;
    this.clusterCode = clusterCode;
    this.message = `(${code}${clusterCode !== void 0 ? `/${clusterCode}` : ""}) ${message}`;
  }
  static is(error, ...codes) {
    return error instanceof StatusResponseError && (!codes.length || codes.includes(error.code));
  }
}
export {
  StatusCode,
  StatusResponseError
};
//# sourceMappingURL=StatusCode.js.map
