mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 15:19:01 +02:00
13 lines
243 B
TypeScript
13 lines
243 B
TypeScript
class HttpError extends Error {
|
|
|
|
statusCode: number;
|
|
|
|
constructor(message: string, statusCode: number) {
|
|
super(message);
|
|
this.name = "HttpError";
|
|
this.statusCode = statusCode;
|
|
}
|
|
|
|
}
|
|
|
|
export default HttpError; |