Interface: NormalizedHttpError
Defined in: httpError.ts:7
A deliberate, client-facing HTTP error normalized out of an unknown thrown
value — what ctx.throw(401, 'Unauthorized', { headers }) produces.
Properties
headers
headers:
Record<string,string>
Defined in: httpError.ts:16
Headers the thrower attached to the error (a 401's WWW-Authenticate,
for instance). Empty when the error carried none.
message
message:
string
Defined in: httpError.ts:11
The message the thrower attached, safe to expose to the client.
status
status:
number
Defined in: httpError.ts:9
The 4xx status the thrower asked for.