@@ -0,0 +1,12 @@
+import { HttpError } from 'http-errors';
+
+export class CustomHttpError extends Error {
+ httpError: HttpError
+ constructor(httpError: HttpError) {
+ super(httpError.message);
+ this.httpError = httpError;
+ }
+}