→ Use the range reserved for user-defined errors (500000 – 599999).
The Error Code File Editor (Tools→Advanced→Edit Error Codes) provides a simple GUI for creating and editing a custom error XML files. See https://labviewwiki.org/wiki/Error_Codes_Editor for details.
If you are creating a stand-alone application (EXE), refer to the Distributing Custom Error Codes in Text Files topic in the LabVIEW Help. The installer build includes all error code files from <LabVIEW>\project\errors
and <LabVIEW>\user.lib\errors
and installs them in the <Shared>\LabVIEW Run-Time\X.X\errors
directory.