Check for status code;, and content type and content transfer encoding headers

issue #1