diff --git a/lib/api.js b/lib/api.js index b12287d..7a25643 100644 --- a/lib/api.js +++ b/lib/api.js @@ -213,6 +213,7 @@ Api.prototype = { } self.errorHandler(error.message, error.response.data); + reject(resolveArgument); }); }); }, diff --git a/typings/base.d.ts b/typings/base.d.ts index 07f9647..4d9d77a 100644 --- a/typings/base.d.ts +++ b/typings/base.d.ts @@ -159,7 +159,9 @@ export namespace base { } interface WithResponse { - statusCode: number; + status: number; + + statusText: string; body: T;