diff --git a/lib/resourceful/resource.js b/lib/resourceful/resource.js index edc2817..0cc888c 100644 --- a/lib/resourceful/resource.js +++ b/lib/resourceful/resource.js @@ -136,16 +136,12 @@ Resource._request = function (/* method, [id, obj], callback */) { var Factory; if (e) { - if (e.status >= 500) { - throw new(Error)(e); - } else { - that.runAfterHooks(method, e, obj, function () { - that.emit("error", e, obj); - if (callback) { - callback(e); - } - }); - } + that.runAfterHooks(method, e, obj, function () { + that.emit("error", e, obj); + if (callback) { + callback(e); + } + }); } else { if (Array.isArray(result)) { result = result.map(function (r) {