@solid/community-server
Version:
Community Solid Server: an open and modular implementation of the Solid specifications
22 lines • 875 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.RangeNotSatisfiedHttpError = void 0;
const HttpError_1 = require("./HttpError");
// eslint-disable-next-line ts/naming-convention
const BaseHttpError = (0, HttpError_1.generateHttpErrorClass)(416, 'RangeNotSatisfiedHttpError');
/**
* An error thrown when the requested range is not supported.
*/
class RangeNotSatisfiedHttpError extends BaseHttpError {
/**
* Default message is 'The requested range is not supported.'.
*
* @param message - Optional, more specific, message.
* @param options - Optional error options.
*/
constructor(message, options) {
super(message ?? 'The requested range is not supported.', options);
}
}
exports.RangeNotSatisfiedHttpError = RangeNotSatisfiedHttpError;
//# sourceMappingURL=RangeNotSatisfiedHttpError.js.map