Raise proper errors when resource is not named