Hi, 
i had a similar query, i want to store the entire response for my book keeping , before it is flush out on to socket connection.
if while storing the response(using a cache to store) any IO error occurs , i want to send out 500 error instead.

Any thoughts on how can this be achieved?


--
Regards,
Rohan Emmanuel