UNPKG

payload

Version:

Node, React, Headless CMS and Application Framework built on Next.js

10 lines (9 loc) 391 B
import { en } from '@payloadcms/translations/languages/en'; import { status as httpStatus } from 'http-status'; import { APIError } from './APIError.js'; export class Forbidden extends APIError { constructor(t){ super(t ? t('error:notAllowedToPerformAction') : en.translations.error.notAllowedToPerformAction, httpStatus.FORBIDDEN); } } //# sourceMappingURL=Forbidden.js.map