http error check part 1 (needs logging)