@sentzunhat/zacatl
Version:
A modular, high-performance TypeScript microservice framework for Node.js, featuring layered architecture, dependency injection, and robust validation for building scalable APIs and distributed systems.
16 lines (13 loc) • 346 B
text/typescript
import { CustomError, CustomErrorsArgs } from "./custom";
export interface NotFoundErrorArgs extends CustomErrorsArgs {}
export class NotFoundError extends CustomError {
constructor({ message, reason, metadata, error }: NotFoundErrorArgs) {
super({
message,
code: 404,
reason,
metadata,
error,
});
}
}