Fixed http error check again.