warran / api /src /error /resource-not-found.ts
Jessedbrown's picture
refactor: change error class and tests
1f2ec65
Raw History Blame Contribute Delete
171 Bytes
import { BaseError } from "./base-error";
export class NotFoundError extends BaseError {
constructor(message = 'Resource not found') {
super(message, 404);
}
}