diff --git a/lib/index.js b/lib/index.js index 5af27a5..7ba8cd9 100644 --- a/lib/index.js +++ b/lib/index.js @@ -24,6 +24,7 @@ export class HttpError extends Error { constructor (message, body, status) { super(message) this.body = body + /** @type {number | undefined} HTTP status code, absent when the request never got a response */ this.status = status /** @type {{ method: string, url: string } | undefined} The request that failed */ this.request = undefined