stream: make it possible to handle errors based on HTTP reponse
Merge pull request #8 from suin/stream-error-handling2

stream: make it possible to handle non-200 based on HTTP response