fist commit

This commit is contained in:
AdisakKanthawilang 2024-01-24 11:39:00 +07:00
parent 44ac172e54
commit 3c64d6b790
24 changed files with 11978 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;