diff --git a/src/mail.js b/src/mail.js index cf2fe76cd..bd353a202 100644 --- a/src/mail.js +++ b/src/mail.js @@ -106,7 +106,6 @@ MailError.BAD_FIELD = 'Bad Field'; MailError.ALREADY_EXISTS = 'Already Exists'; MailError.NOT_FOUND = 'Not Found'; MailError.IN_USE = 'In Use'; -MailError.BILLING_REQUIRED = 'Billing Required'; function validateName(name) { assert.strictEqual(typeof name, 'string'); diff --git a/src/routes/mail.js b/src/routes/mail.js index 0075bb5dd..a20b800ac 100644 --- a/src/routes/mail.js +++ b/src/routes/mail.js @@ -189,7 +189,6 @@ function setMailEnabled(req, res, next) { mail.setMailEnabled(req.params.domain, !!req.body.enabled, auditSource.fromRequest(req), function (error) { if (error && error.reason === MailError.NOT_FOUND) return next(new HttpError(404, error.message)); if (error && error.reason === MailError.BAD_FIELD) return next(new HttpError(400, error.message)); - if (error && error.reason === MailError.BILLING_REQUIRED) return next(new HttpError(402, error.message)); if (error) return next(new HttpError(500, error)); next(new HttpSuccess(202));