diff --git a/lib/restError.ts b/lib/restError.ts index e312720..ca0f7c6 100644 --- a/lib/restError.ts +++ b/lib/restError.ts @@ -21,5 +21,7 @@ export class RestError extends Error { this.request = request; this.response = response; this.body = body; + + Object.setPrototypeOf(this, RestError.prototype); } } \ No newline at end of file