Fix some error return codes
Fix some error return codes

runtimeco/mcuboot,ATmobica/mcuboot,tamban01/mcuboot,utzig/mcuboot,runtimeco/mcuboot,runtimeco/mcuboot,runtimeco/mcuboot,ATmobica/mcuboot,utzig/mcuboot,runtimeco/mcuboot,ATmobica/mcuboot,tamban01/mcuboot,utzig/mcuboot,tamban01/mcuboot,tamban01/mcuboot,utzig/mcuboot,ATmobica/mcuboot,tamban01/mcuboot,ATmobica/mcuboot,utzig/mcuboot