11 lines
232 B
TypeScript
11 lines
232 B
TypeScript
import httpStatus from 'http-status';
|
|
import APIError from './APIError';
|
|
|
|
class NotFound extends APIError {
|
|
constructor() {
|
|
super('The requested resource was not found.', httpStatus.NOT_FOUND);
|
|
}
|
|
}
|
|
|
|
export default NotFound;
|