diff --git a/lib/routes.js b/lib/routes.js index 8f169e24..36c73e65 100644 --- a/lib/routes.js +++ b/lib/routes.js @@ -171,7 +171,7 @@ function getCustomerWithPhoneCode (req, res, next) { }) }) .catch(err => { - if (err.name === 'BadNumberError') throw httpError('Bad number', 410) + if (err.name === 'BadNumberError') throw httpError('Bad number', 401) throw err }) .catch(next)