Skip to content

DownloadPieceErrorOptions

Defined in: packages/synapse-core/src/errors/pdp.ts:347

optional cause?: Error

Defined in: packages/synapse-core/src/errors/provider.ts:8

The underlying request error, such as an HttpError or TimeoutError.

ProviderErrorOptions.cause


optional reason?: DownloadPieceErrorReason

Defined in: packages/synapse-core/src/errors/pdp.ts:349

Why the download failed. Defaults to http when status is set.


optional status?: number

Defined in: packages/synapse-core/src/errors/provider.ts:10

The HTTP status the service provider answered with.

ProviderErrorOptions.status