diff --git a/README.md b/README.md index 4d0652dbe..6a9e8dca5 100644 --- a/README.md +++ b/README.md @@ -240,8 +240,8 @@ import fetch from 'node-fetch'; class HTTPResponseError extends Error { constructor(response, ...args) { - this.response = response; super(`HTTP Error Response: ${response.status} ${response.statusText}`, ...args); + this.response = response; } }