first commit

This commit is contained in:
Bright 2024-02-14 14:31:00 +07:00
parent eced21f78c
commit dd4b472b81
26 changed files with 12006 additions and 0 deletions

View file

@ -0,0 +1,19 @@
import HttpStatus from "./http-status";
class HttpError extends Error {
/**
* HTTP Status Code
*/
status: HttpStatus;
message: string;
constructor(status: HttpStatus, message: string) {
super(message);
this.name = "HttpError";
this.status = status;
this.message = message;
}
}
export default HttpError;