Added header handling.
Added dealing with non 200 response