Python PING Script - Fauls positive - Destination Unreachable : I am sorry to ask again about this, but I have been unable to find a way to eliminate a false positive that keeps happening.

When I get a reply "Destination unreachable" reply it's showing all packets returned and 0 packets lost... so its showing SERVER UP instead of down.

how on gods earth can I get around this?

  # Server up/down Script

  # - Module Import section
  import socket
  import sys
  import os
  import subprocess

  # - IP Address input request
  hostname1 = input (" Please Enter IP Address: ")

  # - Command to run ping request, but also hides ping info
  response = subprocess.run(["ping", "-c", "1", hostname1], stdout=subprocess.PIPE)
  response.returncode

  #___ ORIGINAL CODE ___
  #if (response == "Reply from", hostname1):
  if response.returncode == 0:
      print ( 50 * "-")
      print ("[ **SERVER IS ALIVE** ]")
      print ( 50 * "-")
  elif response.returncode == 0 and (str("Destination host unreachable.")):
      print( 50 * "-")
      print(hostname1, "[ **SERVER DOWN** ] ")
      print( 50 * "-")
  else:
      print( 50 * "-")
      print(hostname1, "[ **SERVER DOWN** ] ")
      print( 50 * "-")
