nut: use meaningful error values