Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

feat: Support Boom statusCode #408

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down