Add support for streaming responses when handling errors