SERVER-6400: change error codes agg is expecting