return failing ret-code instead of arbitrary const