docs: public static boolean isValid(int code) {
          if (code >= 0 && code <= 999 || code >= 1004 && code <= 1006
                  || code >= 1012 && code <= 2999) {
              return false;
          }
          return true;
      }