Skip to main content
Version: v9.0.0

TrpcErrorDataType

Default shape of the error.data field, servers can change it with the errorFormatter


Import
import { TrpcErrorDataType } from "@hyper-fetch/trpc"

Preview​

type TrpcErrorDataType = {
code: string;
httpStatus: number;
path?: string;
stack?: string;
}

Structure​

TrpcErrorDataType
NameTypeDescription
code
string
httpStatus
number
path
string
stack
string