initial commit

This commit is contained in:
Methapon2001 2024-04-01 13:28:43 +07:00
commit c5e3107e03
26 changed files with 3828 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;