Modified to also bounce if http code returned != 200