public static Status forNumber(int value) {
            switch (value) {
              case 1: return CANCELED;
              case 2: return ERRORS;
              case 3: return SUCCESS;
              case 4: return UP_TO_DATE;
              default: return null;
            }
          }
public static Status forNumber(int value)