add check for response status code in request
add check for content type in headers
fix failing test
Merge pull request #9 from hoist/fix/json_response

add check for response status code in request