diff --git a/lib/core/enhanceError.js b/lib/core/enhanceError.js index b6bc444..db04ec8 100644 --- a/lib/core/enhanceError.js +++ b/lib/core/enhanceError.js @@ -35,7 +35,8 @@ module.exports = function enhanceError(error, config, code, request, response) { stack: this.stack, // Axios config: this.config, - code: this.code + code: this.code, + status: this.response && this.response.status ? this.response.status : null }; }; return error; diff --git a/sandbox/client.html b/sandbox/client.html index 55051c2..c06ae16 100644 --- a/sandbox/client.html +++ b/sandbox/client.html @@ -5,7 +5,6 @@