diff --git a/lib/core/enhanceError.js b/lib/core/enhanceError.js index b6bc4444e1..db04ec8ea0 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 55051c2ea0..c06ae16940 100644 --- a/sandbox/client.html +++ b/sandbox/client.html @@ -5,7 +5,6 @@