Skip to main content
Error thrown by WeaverseClient.loadPage() when the client is created with throwPageLoadFailures: true and the page cannot be loaded. Genuine absence is not an error: a missing project still resolves to null and an unassigned page still resolves to a fallback page. code is always LOAD_FAILURE; kind tells a route whether to answer with a retryable or a configuration error. The Next.js server client (@weaverse/hydrogen/next/server) takes the same opt-in option and kind values, with two differences: a missing project ID is a configuration load failure rather than a constructor error, and it does not retry, so unavailable means the first request failed. Answer an outage with a 503 instead of a 404 that crawlers treat as a deleted page, by wrapping loadPage once where the client is created (as Pilot does in app/weaverse/load-failure.ts):
Extends: WeaverseError

Constructor

Creates a classified page-load failure.

Parameters

string
required
number
Record<string, unknown>

Returns

WeaverseLoadError

Properties

string
required
Machine-readable error code.
Record<string, unknown>
Structured diagnostic details for logging and error handling.
Failure class used to choose a response status or recovery action.
number
HTTP status associated with the failure, when available.