Skip to content

Lupa API Reference / network / NetworkError

Enumeration: NetworkError

Defined in: src/network/index.ts:21

Network-level error types which can be thrown when fulfilling network request. Based on Playwright's NetworkError enum.

Enumeration Members

Aborted

Aborted: "aborted"

Defined in: src/network/index.ts:25

An operation was aborted (due to user action).


AccessDenied

AccessDenied: "accessdenied"

Defined in: src/network/index.ts:29

Permission to access a resource, other than the network, was denied.


AddressUnreachable

AddressUnreachable: "addressunreachable"

Defined in: src/network/index.ts:33

The IP address is unreachable. This usually means that there is no route to the specified host or network.


BlockedByClient

BlockedByClient: "blockedbyclient"

Defined in: src/network/index.ts:37

The client chose to block the request.


BlockedByResponse

BlockedByResponse: "blockedbyresponse"

Defined in: src/network/index.ts:42

The request failed because the response was delivered along with requirements which are not met (e.g., 'X-Frame-Options' or 'Content-Security-Policy').


ConnectionAborted

ConnectionAborted: "connectionaborted"

Defined in: src/network/index.ts:46

A connection timed out as a result of not receiving an ACK for data sent.


ConnectionClosed

ConnectionClosed: "connectionclosed"

Defined in: src/network/index.ts:50

A connection was closed (corresponding to a TCP FIN).


ConnectionFailed

ConnectionFailed: "connectionfailed"

Defined in: src/network/index.ts:54

A connection attempt failed.


ConnectionRefused

ConnectionRefused: "connectionrefused"

Defined in: src/network/index.ts:58

A connection attempt was refused.


ConnectionReset

ConnectionReset: "connectionreset"

Defined in: src/network/index.ts:62

A connection was reset (corresponding to a TCP RST).


Failed

Failed: "failed"

Defined in: src/network/index.ts:78

A generic failure occurred.


InternetDisconnected

InternetDisconnected: "internetdisconnected"

Defined in: src/network/index.ts:66

The Internet connection has been lost.


NameNotResolved

NameNotResolved: "namenotresolved"

Defined in: src/network/index.ts:70

The host name could not be resolved.


TimedOut

TimedOut: "timedout"

Defined in: src/network/index.ts:74

An operation timed out.