Merge pull request #61 from ONLYOFFICE/feature/builder

changed docbuilder http error code from 403 to 402 in case of incorre…
This commit is contained in:
Sergey Konovalov
2017-11-14 15:13:54 +03:00
committed by GitHub

View File

@ -231,7 +231,7 @@ if (cluster.isMaster) {
const licenseInfo = docsCoServer.getLicenseInfo();
if (licenseInfo.type !== constants.LICENSE_RESULT.Success) {
logger.error('License expired');
res.sendStatus(403);
res.sendStatus(402);
return;
}
converterService.builder(req, res);