detect https failure