Added file exception, added additional tests for failure and new functionality to retrieve responses as streams.