mirror of https://github.com/TriliumNext/Notes
refactor(error_handlers): use newly added ForbiddenError class
parent
2c91f6e7bc
commit
0c8df7f885
@ -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;
|
||||
Loading…
Reference in New Issue