After an error raised during a Transaction submission with server.submit_transaction() how can I access the corresponding (Horizon Response JSON object) https://developers.stellar.org/api/errors/response/ in my App's code in order to investigate the "result_codes" entry and handle the cause of the error(e.g: tx_insufficient_fee), programatically without halting the execution of my code forcefully (which is what happens now).
Stay Safe