diff --git a/src/routes/settings.js b/src/routes/settings.js index 20a1c425b..0637fc175 100644 --- a/src/routes/settings.js +++ b/src/routes/settings.js @@ -183,6 +183,7 @@ function setBackupConfig(req, res, next) { settings.setBackupConfig(req.body, function (error) { if (error && error.reason === SettingsError.BAD_FIELD) return next(new HttpError(400, error.message)); + if (error && error.reason === SettingsError.EXTERNAL_ERROR) return next(new HttpError(402, error.message)); if (error) return next(new HttpError(500, error)); next(new HttpSuccess(200));