/** Every way the sealed egress refuses a request, as a stable code. */ export type EgressCode = "EGRESS_SCHEME_NOT_ALLOWED" | "EGRESS_ORIGIN_NOT_ALLOWED" | "EGRESS_PATH_NOT_ALLOWED" | "EGRESS_ADDRESS_REFUSED" | "EGRESS_TLS_REJECTED" | "EGRESS_TLS_CLIENT_CERT_REFUSED" /** * TLS failed once the peer was verified: reported on the security stream, * never thrown, since the connection may have carried the request and its * own error is what the caller gets. */ | "EGRESS_TLS_BROKEN" | "EGRESS_TLS_PIN_MISMATCH" | "EGRESS_BODY_TOO_LARGE" | "EGRESS_TIMEOUT" | "EGRESS_REDIRECT_REFUSED" | "EGRESS_RESPONSE_INVALID" | "EGRESS_INIT_UNSUPPORTED" | "EGRESS_GLOBAL_FETCH_LOCKED"; /** * A refusal by the executor's own egress policy: the code, and the origin it * concerned. Never the path, the headers, or anything from the request or * the response. */ export declare class EgressError extends Error { readonly code: EgressCode; readonly origin: string | null; constructor(code: EgressCode, origin?: string | null); } //# sourceMappingURL=EgressError.d.ts.map