Writes the result of a typed route handler to the response.
Writes an error response with the given status, stable machine-readable error code, and optional human-readable details, e.g. body validation errors. Unlike the code, the details make no stability promise.
Optionaldetails: string[]
Writes RestResults and error responses of the external API to HTTP responses.
All responses of the external API go through this service: the results of typed routes, request body validation failures, the token verification, and the fallback error handling. Rebind it to change the wire format of the external API consistently.