Following up the discussion in https://github.com/cortexproject/cortex/pull/3167#pullrequestreview-487566857, we should uniform the error type used for validation errors.