definy.rpc-error
- description
- Responds with a Connect error ({code, message} and the status of the code)
- type
Fn(code: String, message: String) -> @definy.service-io
- expression
fn(code$0, message$1) =>
@definy.json-response(
status: @definy.rpc-error-status(code: $0),
body: #object<@definy.json>([
{key: "code", value: #string<@definy.json>($0)},
{key: "message", value: #string<@definy.json>($1)}
])
)- visibility
- public
definy.rpc-error (project definy, branch main, snapshot l0VFjJZP174d8CbZWFoujAGTYjgsQu4uTq5uWCZaXgo)
id: xhD_3WukKtUH-Wlkxf-1syWngtlxZa0_nvRp8DcPT-M
content hash: WyZH0NUS3X20VXew8_ZhpFg4X9jMzc1qovmSqOK-RlU