The payload, or null when there is nothing to return.
Deliberately untyped: the shape belongs to the endpoint, and the controller is the layer that knows it.
Human-readable description of the outcome, safe to show a client.
Whether the request did what the caller asked for.
false marks an outcome the caller can act on — a missing record, invalid
input. Faults they cannot act on throw instead, and surface as a 500.
The response envelope every endpoint returns.
Remarks
Services build this through Service.ok and Service.fail rather than assembling it by hand, which is what lets a controller map
successonto a status code without reading the service it called.Example
Author
Bayu Dwiyan Satria
Version
1.0.0
Since
1.0.0