Notes/src/errors/not_found_error.ts

13 lines
224 B
TypeScript

import HttpError from "./http_error.js";
class NotFoundError extends HttpError {
constructor(message: string) {
super(message, 404);
this.name = "NotFoundError";
}
}
export default NotFoundError;