Use explicit http error code for api v2

* not exist should be 404
* conflict should be 409
* not authorized should be 401

Change-Id: Ied88290c42e5679761e6d50073c7965c5644f84e
Closes-Bug: #1271525
Merge "Use explicit http error code for api v2"