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

//# sourceMappingURL=UnathorizedError.js.map