helper/command: return proper JIM error code