moby/docs/reference
Stephen J Day ce22bc39dc api/server/httputils: service unavailable for disable swarm
When swarm-mode is disabled, we need to return an error indicating this.
406 was chosen for the "Not Acceptable" verbiage, but this code has
specific semantics in relation to the `Accept` header, which aren't
applicable here.

We now use a 503 for this case. While it is not a perfect match, it does
make it clear that the particular "service" (read: API endpoint) is not
available. The body of the message provides the user with enough
information to take action on it by enabling swarm-mode and ensuring the
service is available.

Signed-off-by: Stephen J Day <stephen.day@docker.com>
(cherry picked from commit 1d90d76048)
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
2016-11-18 13:44:36 -08:00
..
api api/server/httputils: service unavailable for disable swarm 2016-11-18 13:44:36 -08:00
commandline Change the docker-tag usage text to be clearer 2016-11-18 13:41:48 -08:00
builder.md Update docs for the output of docker build (Step 1/...) 2016-11-05 19:05:19 -07:00
glossary.md fix the wrong title with docker swarm 2016-11-14 17:02:42 -08:00
index.md fix frontmatter keywords value type (string, instead of []string) in /docs/reference 2016-11-03 15:48:30 -07:00
run.md Revert reference docs for ambient capabilities 2016-11-15 13:59:39 -08:00