swarm-controller: the commands route's 503 is only an unreachable queue
This commit is contained in:
parent
8f11a38d17
commit
05fef7926f
1 changed files with 3 additions and 3 deletions
|
|
@ -83,13 +83,13 @@ fn build(published: Option<Skills>) -> Vec<CommandEntry> {
|
|||
params(("name" = String, Path, description = "agent whose commands to list")),
|
||||
responses(
|
||||
(status = 200, description = "the swarm's own commands, then the skills the agent's \
|
||||
harness published, for the message box's command menu; just the swarm's commands \
|
||||
when the agent has published none and on a host with no swarm queue",
|
||||
when the agent has published none",
|
||||
body = Vec<CommandEntry>),
|
||||
(status = 400, description = "the agent name is not shaped like an identifier \
|
||||
(problem+json)", body = String),
|
||||
(status = 503, description = "no swarm queue is configured on this host, or the \
|
||||
queue could not be reached (problem+json)", body = String),
|
||||
(status = 503, description = "the swarm queue could not be reached \
|
||||
(problem+json)", body = String),
|
||||
(status = 500, description = "reading the agent's skills failed (problem+json)",
|
||||
body = String),
|
||||
),
|
||||
|
|
|
|||
Loading…
Reference in a new issue