[]previous and next page

RequestErrorContext

What onRequest and onRequestError learn about the request.

What onRequest and onRequestError learn about the request.

Import#

ts
import type { RequestErrorContext } from "@shadow-js/dusk/server";

Signature#

ts
interface RequestErrorContext {
  readonly phase: ErrorPhase;
  /** `page`, `api`, `rpc`, `stream`, `none`, or `undefined` when no route was resolved. */
  readonly routeKind: string | undefined;
  readonly routeId: string | undefined;
  /** The request id (the same as the `x-request-id` header). */
  readonly requestId: string | undefined;
}

Members#

Name Type Description
phase readonly phase: ErrorPhase
routeKind readonly routeKind: string | undefined page, api, rpc, stream, none, or undefined when no route was resolved.
routeId readonly routeId: string | undefined
requestId readonly requestId: string | undefined The request id (the same as the x-request-id header).