return a 404 when an object cannot be found