@opra/common
Version:
Opra common package
21 lines (20 loc) • 718 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.PermissionError = void 0;
const forbidden_error_js_1 = require("./forbidden.error.js");
/**
* 403 Forbidden
* The client does not have access rights to the content; that is, it is unauthorized,
* so the server is refusing to give the requested resource. Unlike 401 Unauthorized,
* the client's identity is known to the server.
*/
class PermissionError extends forbidden_error_js_1.ForbiddenError {
init(issue) {
super.init({
message: 'You dont have permission for this operation',
code: 'PERMISSION_ERROR',
...issue,
});
}
}
exports.PermissionError = PermissionError;