diff --git a/commands/routing/use.go b/commands/routing/use.go index 45c783f..32ba7ac 100644 --- a/commands/routing/use.go +++ b/commands/routing/use.go @@ -16,18 +16,16 @@ type UseOK = commands.Unit // CandidateUnavailable when none can serve it. Without a policy the reference // is cleared and the space returns to default routing. // -// The space MUST be provisioned with a provider (SpaceNotProvisioned) and the -// policy MUST be known to the upload service, i.e. have a stored candidate set +// The space MUST be provisioned with a provider; otherwise the invocation fails +// with InsufficientStorage (see access.InsufficientStorageErrorName). The policy +// MUST be known to the upload service, i.e. have a stored candidate set // (UnknownPolicy). // // The receipt carries no payload (Unit). var Use = binding.Bind[*UseArguments, *UseOK](command.MustParse("/routing/use")) -const ( - // UnknownPolicyErrorName is the stable receipt-failure name when the - // referenced policy has no stored candidate set. - UnknownPolicyErrorName = "UnknownPolicy" - // SpaceNotProvisionedErrorName is the stable receipt-failure name when the - // subject space has no service provider. - SpaceNotProvisionedErrorName = "SpaceNotProvisioned" -) +// UnknownPolicyErrorName is the stable receipt-failure name when the +// referenced policy has no stored candidate set. A space with no service +// provider fails with the shared InsufficientStorage name from the access +// package, as every other capability on an unprovisioned space does. +const UnknownPolicyErrorName = "UnknownPolicy"