diff --git a/package.json b/package.json index af38db5..3996dee 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "3.0.6", + "version": "3.0.7", "license": "Apache-2.0", "main": "dist/index.js", "typings": "dist/index.d.ts", diff --git a/src/messaging/classes/HttpClient.ts b/src/messaging/classes/HttpClient.ts index 08a5268..67877ca 100644 --- a/src/messaging/classes/HttpClient.ts +++ b/src/messaging/classes/HttpClient.ts @@ -161,7 +161,10 @@ export abstract class HttpClient { if (error.response?.status && error.response?.statusText) { return Promise.reject( - new RequestError(Constants.ERRORS.UNKNOWN_ERROR) + new RequestError({ + errorCode: `${error.response.status}`, + errorMessage: error.response.statusText, + }) ); }