Fix update actions to return correct codes