refactor(error_handlers): use newly added ForbiddenError class

This commit is contained in:
Panagiotis Papadopoulos
2025-03-07 23:29:35 +01:00
parent 2c91f6e7bc
commit 0c8df7f885
2 changed files with 14 additions and 4 deletions

View File

@@ -0,0 +1,12 @@
import HttpError from "./http_error.js";
class ForbiddenError extends HttpError {
constructor(message: string) {
super(message, 403);
this.name = "ForbiddenError";
}
}
export default ForbiddenError;