Added error codes to REST API docs

Change-Id: Ifc094fe887b18424d5d63565be6096feb6878fe3