registry: add error to States() call