Categorize HDFS errors
Update docs for arbitrary aggregation function