I just started using your library and noticed that in check-link.js you access err.statusCode.
But this property is undefined when I use the library. However in can find the statuscode at err.response.statusCode
return fetchHEAD()
.catch((/** @type {HTTPError} */ err) => {
console.warn('HEAD error', err)
// TODO: if HEAD results in a `got.HTTPError`, are there status codes where
// we can bypass the GET request?
return fetchGET()
})
.catch((/** @type {Response} */ err) => {
console.warn('GET error', err)
return /** @type {const} */ ({
status: 'dead',
statusCode: err.statusCode
})
})
I just started using your library and noticed that in check-link.js you access err.statusCode. But this property is undefined when I use the library. However in can find the statuscode at err.response.statusCode