@org.apache.thrift.annotation.Nullable
  public static TStatusCode findByValue(int value) { 
    switch (value) {
      case 0:
        return SUCCESS_STATUS;
      case 1:
        return SUCCESS_WITH_INFO_STATUS;
      case 2:
        return STILL_EXECUTING_STATUS;
      case 3:
        return ERROR_STATUS;
      case 4:
        return INVALID_HANDLE_STATUS;
      default:
        return null;
    }
  }
Find a the enum type by its integer value, as defined in the Thrift IDL.
@return null if the value is not found.
service-rpc/src/gen/thrift/gen-javabean/org/apache/hive/service/rpc/thrift/TStatusCode.java