Browse documentation

ErrorContext

Type. Rejected request plugin input.

Table of contents

Category

Type

Type import

ts
import type { ErrorContext } from "valyrian.js/request";

Public signature

ts
interface ErrorContext extends RequestContext { response?: Response; error: unknown; body?: unknown; }

Type usage

ErrorContext carries the rejected value and includes response or parsed body when the failed request produced them.