From c071406e193cce13959999982584ff27198e9e4a Mon Sep 17 00:00:00 2001 From: dhananjaysa92 <116092192+dhananjaysa92@users.noreply.github.com> Date: Sun, 30 Oct 2022 16:17:53 -0400 Subject: [PATCH] (1138) - Fixed HTTPResponseError with correct constructor and usage (#1666) Co-authored-by: Dhananjay Agrawal --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2c1169711..d62c9c64d 100644 --- a/README.md +++ b/README.md @@ -269,8 +269,8 @@ It is common to create a helper function to check that the response contains no import fetch from 'node-fetch'; class HTTPResponseError extends Error { - constructor(response, ...args) { - super(`HTTP Error Response: ${response.status} ${response.statusText}`, ...args); + constructor(response) { + super(`HTTP Error Response: ${response.status} ${response.statusText}`); this.response = response; } }