How to capture insufficient loanable assets while transfering fund from SPOT to ISOLATED margin?

Hi Everyone,
I am developing a Crypto Bot for trading. I am using python binance for the same and am looking for a way to capture the error message “Due to high borrowing demand, there are currently insufficient loanable assets for . Please adjust your borrowing amount or try again tomorrow”. I tried the following function but could’nt get any response related to above status;
Basically, i need to transfer fund from Spot to ISOLATED margin.

Hi. i am used GitHub - Binance-docs/Binance_Futures_python. its cool library
maybe you’ll find something here

This is what i am looking for. Is there any endpoint to capture this signal?