Pre-initialize the error codes in case of no candidates.