import { translations } from '@payloadcms/translations/api';
import httpStatus from 'http-status';
import APIError from './APIError.js';
class Forbidden extends APIError {
    constructor(t){
        super(t ? t('error:notAllowedToPerformAction') : translations.en.error.notAllowedToPerformAction, httpStatus.FORBIDDEN);
    }
}
export default Forbidden;

//# sourceMappingURL=Forbidden.js.map