Fixed error with http success condition.