diff --git a/packages/tre/src/plugins/r2/errors.ts b/packages/tre/src/plugins/r2/errors.ts index 77d1fe10f..42cd45ea9 100644 --- a/packages/tre/src/plugins/r2/errors.ts +++ b/packages/tre/src/plugins/r2/errors.ts @@ -24,12 +24,10 @@ enum CfCode { } export class R2Error extends HttpError { - v4Code: number; object?: R2Object; - constructor(status: number, message: string, v4Code: number) { - super(status, message); - this.v4Code = v4Code; + constructor(code: number, message: string, readonly v4Code: number) { + super(code, message); } toResponse() {