summaryrefslogtreecommitdiff
path: root/api/server/httputils
diff options
context:
space:
mode:
authorMichael Crosby <crosbymichael@gmail.com>2016-11-17 15:16:23 -0800
committerGitHub <noreply@github.com>2016-11-17 15:16:23 -0800
commitbbac9eeae68a2d1084961dc3b0adc4e9e729647c (patch)
treedac2fe9c8150765ae89f2355a1b3c0a57df25aeb /api/server/httputils
parente61ad7465503a2cfe4c8cfec2f929831c28fd84a (diff)
parent1d90d7604881e29b71819af9c092d565513aeeec (diff)
downloaddocker-bbac9eeae68a2d1084961dc3b0adc4e9e729647c.tar.gz
Merge pull request #28532 from stevvooe/disabled-swarm-service-unavailable
api/server/httputils: service unavailable for disable swarm
Diffstat (limited to 'api/server/httputils')
-rw-r--r--api/server/httputils/errors.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/server/httputils/errors.go b/api/server/httputils/errors.go
index 6b57f7b884..aa9b4c337b 100644
--- a/api/server/httputils/errors.go
+++ b/api/server/httputils/errors.go
@@ -62,7 +62,7 @@ func GetHTTPErrorStatusCode(err error) int {
{"wrong login/password", http.StatusUnauthorized},
{"unauthorized", http.StatusUnauthorized},
{"hasn't been activated", http.StatusForbidden},
- {"this node", http.StatusNotAcceptable},
+ {"this node", http.StatusServiceUnavailable},
} {
if strings.Contains(errStr, status.keyword) {
statusCode = status.code