apisearch
Version:
Javascript client for Apisearch.
49 lines (48 loc) • 1.43 kB
JavaScript
;
exports.__esModule = true;
exports.ForbiddenError = void 0;
var tslib_1 = require("tslib");
var ErrorWithMessage_1 = require("./ErrorWithMessage");
/**
* Forbidden Error
*/
var ForbiddenError = /** @class */ (function (_super) {
tslib_1.__extends(ForbiddenError, _super);
function ForbiddenError() {
return _super !== null && _super.apply(this, arguments) || this;
}
/**
* Get transportable http error
*
* @return {number}
*/
ForbiddenError.getTransportableHTTPError = function () {
return 403;
};
/**
* App id is required
*
* @return {ForbiddenError}
*/
ForbiddenError.createAppIdIsRequiredException = function () {
return new ForbiddenError("AppId query parameter MUST be defined with a valid value");
};
/**
* Index id is required
*
* @return {ForbiddenError}
*/
ForbiddenError.createIndexIsRequiredException = function () {
return new ForbiddenError("Index query parameter MUST be defined with a valid value");
};
/**
* Token is required
*
* @return {ForbiddenError}
*/
ForbiddenError.createTokenIsRequiredException = function () {
return new ForbiddenError("Token query parameter MUST be defined with a valid value");
};
return ForbiddenError;
}(ErrorWithMessage_1.ErrorWithMessage));
exports.ForbiddenError = ForbiddenError;