mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
16 lines
486 B
TypeScript
16 lines
486 B
TypeScript
import type { HttpErrorOptions } from './HttpError';
|
|
import { generateHttpErrorClass } from './HttpError';
|
|
|
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
const BaseHttpError = generateHttpErrorClass(404, 'NotFoundHttpError');
|
|
|
|
/**
|
|
* An error thrown when no data was found for the requested identifier.
|
|
*/
|
|
export class NotFoundHttpError extends BaseHttpError {
|
|
public constructor(message?: string, options?: HttpErrorOptions) {
|
|
super(message, options);
|
|
}
|
|
}
|
|
|