1
0
mirror of https://github.com/moby/moby.git synced 2025-07-24 21:42:19 +03:00
Files
moby/api
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
..
2016-09-16 12:27:13 -04:00
2016-09-07 11:05:58 -07:00
2016-11-04 10:10:42 -07:00
2016-11-14 14:24:02 -08:00
2014-07-04 18:21:13 +09:00

This directory contains code pertaining to the Docker API:

  • Used by the docker client when communicating with the docker daemon

  • Used by third party tools wishing to interface with the docker daemon