From 661bc46eaa7288e4138a0fe9574772dc3189313d Mon Sep 17 00:00:00 2001 From: Ali Essam Date: Sun, 10 Dec 2017 10:11:43 +0200 Subject: [PATCH] feat: Support Boom statusCode --- lib/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/client.js b/lib/client.js index 21f22be..4a37d66 100644 --- a/lib/client.js +++ b/lib/client.js @@ -522,7 +522,7 @@ extend(Raven.prototype, { errorHandler: function() { var self = this; return function(err, req, res, next) { - var status = err.status || err.statusCode || err.status_code || 500; + var status = err.status || err.statusCode || err.status_code || err.output && err.output.statusCode || 500; // skip anything not marked as an internal server error if (status < 500) return next(err);