initialized the failed variable in HandleStreamResponse