fix http client to handle error stream if not http success