Fix error response codes

 * DoesNotExistError should return a 404.

Change-Id: Ic9c8bc92790947cc365cb3b5e73980daa9198853