When making a synchronous request to a custom business process and there's an error and 0 is returned, it seems that the response is not sent back to the custom business service. Rather, a Ens.MessageHeader with IsError=1 is returned without a message body (which would normally be the response object).
I tried using ##class(Ens.MessageHeader).%OpenId($$$JobCurrentHeaderId).IsError to check the error status but I keep getting the node that $$$JobCurrentHeaderId compiles to is undefined. There's clearly a Ens.MessageHeader object being sent back to the process, but I can't access it.
.png)
.png)


.png)

.png)

