1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/docs/reference
Stephen J Day 1d90d76048
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>
2016-11-17 11:43:45 -08:00
..
api api/server/httputils: service unavailable for disable swarm 2016-11-17 11:43:45 -08:00
commandline Update stats cli reference documentation 2016-11-16 15:26:29 +01: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-11 17:44:00 +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 21:59:21 +01:00