Function: replyError()
replyError(
error):Reply<never>
Defined in: packages/contracts/src/reply.ts:109
Builds a failed reply.
Parameters
error
code, category and message are required; retryable
defaults from the category.
category
"validation" | "authorization" | "state" | "conflict" | "upstream" | "internal"
code
string
message
string
retryable?
boolean
Returns
Reply<never>
{ ok: false, error }. The message must name what the caller should do,
and must not disclose whether a subject the caller may not see exists.