Declare `err_code` once for all of RiverTrailFFI.