UNPKG

@r1tsu/payload

Version:

11 lines (10 loc) 392 B
import { en } from '@payloadcms/translations/languages/en'; import httpStatus from 'http-status'; import APIError from './APIError.js'; class UnauthorizedError extends APIError { constructor(t){ super(t ? t('error:unauthorized') : en.translations.error.unauthorized, httpStatus.UNAUTHORIZED); } } export default UnauthorizedError; //# sourceMappingURL=UnathorizedError.js.map