def served(url):
 r = requests.get(url, allow_redirects=False)
 return (r.status_code == 200)

def served ( url ) : r = requests . get ( url , allow_redirects = False ) return ( r . status_code == 200 )
return true if url returns 200 .