pub.client:http iaik.security.ssl.SSLCertificateException: Peer certificate rejected

when my flow service reaches pub.client:http service it fails to execute and i get the below error iaik.security.ssl.SSLCertificateException: Peer certificate rejected
however this is an expected error for me, but i want to have that error to be captured in as it is to update other system in the following service.

how can i read this erro at run time and pass it as it is and map it to the update service that i have built ?

i tried getLastError service but the follow does not even reach that service since the whole flaw stops when it encounters the HTTP failiur error above

is there a way that before the whole flow stops from execution to dump or pass this error to another variable so that i can pass that error to another service?