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
    3 properties
    On this page

    Class in @minecraft/server-net

    Extends Error

    Basalt’s own: what a request that got no answer rejects with.

    import { HttpError } from '@minecraft/server-net';
    import { HttpError } from '@minecraft/server-net';
    try {
    // Call the API here.
    } catch (error) {
    if (error instanceof HttpError) {
    console.warn(`${error.name}: ${error.message}`);
    } else {
    throw error;
    }
    }
    import { HttpError } from '@minecraft/server-net';
    try {
    // Call the API here.
    }
    catch (error) {
    if (error instanceof HttpError) {
    console.warn(`${error.name}: ${error.message}`);
    }
    else {
    throw error;
    }
    }

    read-only

    readonly name: "HttpError";

    read-only

    readonly reason: HttpErrorReason;

    read-only

    readonly uri: string;

    The request’s URI.