code: def _handle_response(self, response):
          
          if not str(response.status_code).startswith('2'):
              raise BinanceAPIException(response)
          try:
              return response.json()
          except ValueError:
              raise BinanceRequestException('Invalid Response: %s' % response.text)
docs: Internal helper for handling API responses from the Binance server.
          Raises the appropriate exceptions when necessary; otherwise, returns the
          response.