Interaction via Rest API (USDMClient) problems in case of servers overloaded


We connect using Node.js & JavaScript SDK for Binance REST APIs & WebSockets. Sometimes, after sending a request to Binance, we receive errors that disrupt planned work. We found solutions like axios-retry on the internet for Axios, but I assumed there might be a native solution at the library level that would solve the problem of retrying requests to the server after a certain period, a certain number of times for specific errors. Could you please advise on best practices for resolving issues with errors when receiving responses from the server for commands in the terminal via USDMClient? How should errors be handled best? Thank you!

Language: TypeScript
Library Name: binance
Version: 2.8.15