[API] Fix delete and node delete response codes

Change-Id: I1e7e095234317545f9e12fa92ccc2d350e6c2c68