Unify task and future result codes and remove future status field.