Skip to content
BasaltSoftware
Bedrock 1.26.60

Site colour

Discord
Esc

    ↑↓ moveEnter openEsc close

    Keyboard shortcuts
    Ctrl K
    Search the whole site, from any page
    /
    Jump to the sidebar search, or search the whole site where there isn't one
    Enter
    Open the top search result
    Esc
    Clear the search, or close this panel
    ?
    Show these shortcuts
    @minecraft/server-net

    HttpErrorReason

    Why an HttpError happened.

    1 min read · 2 sections
    On this page

    Type in @minecraft/server-net

    Why an HttpError happened.

    import type { HttpErrorReason } from '@minecraft/server-net';
    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";

    HttpError.reason