Core
HttpStatusFault
Fault for a non-2xx response, typed by the declared error struct.
@defjs/core · Type
Signature
type HttpStatusFault<TErr extends AnyStruct | undefined = undefined> = HttpStatusFaultOf<ErrorBody<TErr>>;
TErr is the endpoint's declared error struct, or undefined when it
declares none. Any non-2xx status. When the endpoint declared error and the
body decoded, data is that body and response carries it. Omitting error
skips decoding, which leaves data as undefined and response without a
body field. ErrorBody<TErr> is that decoded body: undefined when no
error struct was declared, otherwise Infer<TErr>. HttpStatusFaultOf
is the member shape.