documented and created test case for when the exception occurs midway through a streamed response