only stream response when status code is 2XX
Merge pull request #103 from dwrensha/streaming

only stream response when status code is 2XX