I'm no HTTP expert so I'm not sure what the best way to return an error while streaming index results is. Did you check with Mr. @seancribbs ?