4xm: return a proper error code.