oapix / src /utils /httpError.js
woiceatus's picture
init
e43a4a9
raw
history blame contribute delete
202 Bytes
export class HttpError extends Error {
constructor(statusCode, message, details) {
super(message);
this.name = "HttpError";
this.statusCode = statusCode;
this.details = details;
}
}