Adding returning 404 if resource is missing