1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/api/server
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
..
httputils api/server/httputils: service unavailable for disable swarm 2016-11-17 11:43:45 -08:00
middleware Revise swarm init/update flags, add unlocking capability 2016-11-09 16:09:00 -08:00
router Add reference filter and deprecated filter param… 2016-11-11 15:34:01 +01:00
middleware.go change comment 2016-08-26 18:30:41 +08:00
profiler.go add trace in docker engine's pprof to show execution trace in binary form 2016-05-13 15:24:44 +08:00
router_swapper.go fix typos 2016-03-06 00:59:11 +08:00
server.go always add but hide experimental cmds and flags 2016-11-08 04:55:27 -08:00
server_test.go replace handleWithGlobalMiddlewares with handlerWithGlobalMiddlewares 2016-08-12 10:53:11 +08:00