Defjs
Core

PreflightFault

A failure that may have happened before any response existed.

@defjs/core · Type

Signature

type PreflightFault = Error & {
  cause?: unknown;
  code: PreflightFaultCode;
  response?: HttpMeta;
};

Covers REQ_*, NET_*, EXT_*, CAP_*, and ENV_UNSUPPORTED. response is present only where the transport already had metadata to report, such as a body that truncated mid-download.

Members

Prop

Type

code PreflightFaultCode
response? HttpMeta | undefined
Edit this page on GitHub
Released under the MIT License. · Copyright © 2026 MunMunMiao