Set correct error code if object doesn't exist. Refs gh-199