Why an HttpError happened.
Type in @minecraft/server-net
Why an HttpError happened.
import type { HttpErrorReason } from '@minecraft/server-net';Definition
Section titled “Definition”export type HttpErrorReason = /** `script_net_enabled` is off. */ | "disabled" /** The host, or one a redirect led to, isn't in `script_net_allowed_hosts`. */ | "blocked" /** The URI, method or a header isn't valid. */ | "invalidRequest" /** No full answer came within the request's timeout. */ | "timeout" /** The body was over `script_net_max_body_bytes`. */ | "tooLarge" /** {@link HttpClient.cancelAll} abandoned it. */ | "cancelled" /** The connection or TLS failed. */ | "network";