Currently, those exceptions are logged as "Unhandled exception in endpoint" since they are not HTTPError instances. CCF handles those exceptions and translates them to OData errors here:
https://github.com/microsoft/CCF/blob/6f365683de8d04bc0a37c3732c1de608989fb14e/src/node/rpc/frontend.h#L606-L619
I think we should duplicate this code so that we control the HTTP response and can then log it properly.
We could wrap CCF's JSON adapter into our own JSON adapter and emit HTTPError instances, for example.
Currently, those exceptions are logged as "Unhandled exception in endpoint" since they are not
HTTPErrorinstances. CCF handles those exceptions and translates them to OData errors here:https://github.com/microsoft/CCF/blob/6f365683de8d04bc0a37c3732c1de608989fb14e/src/node/rpc/frontend.h#L606-L619
I think we should duplicate this code so that we control the HTTP response and can then log it properly.
We could wrap CCF's JSON adapter into our own JSON adapter and emit
HTTPErrorinstances, for example.