diff --git a/lib/courier/jnt.js b/lib/courier/jnt.js index 4f67f3b..deb2d99 100644 --- a/lib/courier/jnt.js +++ b/lib/courier/jnt.js @@ -71,6 +71,9 @@ module.exports = function () { } try { + if (res.statusCode !== 200) { + return cb(tracker.error(res.statusMessage)) + } var result = parser.trace(JSON.parse(body.data)) cb(result ? null : tracker.error(tracker.ERROR.INVALID_NUMBER), result) } catch (e) {