Use an enum for JB_ERR_* values so they are available in the debugger