mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
16 lines
626 B
TypeScript
16 lines
626 B
TypeScript
import type { HttpErrorOptions } from './HttpError';
|
|
import { generateRedirectHttpErrorClass } from './RedirectHttpError';
|
|
|
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
const BaseHttpError = generateRedirectHttpErrorClass(301, 'MovedPermanentlyHttpError');
|
|
|
|
/**
|
|
* Error used for resources that have been moved permanently.
|
|
* Methods other than GET may or may not be changed to GET in subsequent requests.
|
|
*/
|
|
export class MovedPermanentlyHttpError extends BaseHttpError {
|
|
public constructor(location: string, message?: string, options?: HttpErrorOptions) {
|
|
super(location, message, options);
|
|
}
|
|
}
|