NXP-12171: improve webengine logging error return type