http resp failure checking