MCPcopy Create free account
hub / github.com/nodejs/node / isNetworkError

Function isNetworkError

deps/undici/src/lib/web/fetch/response.js:398–405  ·  view source on GitHub ↗
(response)

Source from the content-addressed store, hash-verified

396
397// @see https://fetch.spec.whatwg.org/#concept-network-error
398function isNetworkError (response) {
399 return (
400 // A network error is a response whose type is "error",
401 response.type === 'error' &&
402 // status is 0
403 response.status === 0
404 )
405}
406
407function makeFilteredResponse (response, state) {
408 state = {

Callers 2

#connectMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected