def clues_too_many(text):
 text = text.lower()
 for clue in ('exceed', 'connections', 'too many', 'threads', 'limit'):
  if (clue in text):
   return True
 return False

def clues_too_many ( text ) : text = text . lower ( ) for clue in ( 'exceed' , 'connections' , 'too many' , 'threads' , 'limit' ) : if ( clue in text ) : return True return False
check for any "too many connections" clues in the response code .