Fixed api status reporting

Change-Id: Ib2c14f7e3ee9e4a48df62f0759b387a46eda5389