@dynatrace-sdk/http-client 1.0.4 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,18 @@
2
2
 
3
3
  @dynatrace-sdk/http-client
4
4
 
5
+ ## 1.0.6
6
+
7
+ ### Patch Changes
8
+
9
+ - Update package description
10
+
11
+ ## 1.0.5
12
+
13
+ ### Patch Changes
14
+
15
+ - Add response status and response source to DataTypeError.
16
+
5
17
  ## 1.0.4
6
18
 
7
19
  ### Patch Changes
package/cjs/index.js CHANGED
@@ -329,7 +329,9 @@ function throwResponseBodyTypeError(response, responseBodyType, cause) {
329
329
  throw new DataTypeError(
330
330
  `Response body does not conform to the specified response body type: '${responseBodyType}'. The content type of the response is '${response.headers.get(
331
331
  "Content-Type"
332
- )}'.`,
332
+ )}'. Response status is '${response.status}'. Response source is '${response.headers.get(
333
+ "dynatrace-response-source"
334
+ )}'`,
333
335
  cause
334
336
  );
335
337
  }