Make error code variables to have narrower scope.