summaryrefslogtreecommitdiff
path: root/plugins/http
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-04-06 15:15:01 +0300
committerValery Piashchynski <[email protected]>2021-04-06 15:15:01 +0300
commitad8db0ad8907fbc562123b41323b34ec6c0dec9f (patch)
tree036884e8f37d3c9abe965e487fe2eecef903ccf2 /plugins/http
parent4e468f900e82c344269be0129624cbfcde706e26 (diff)
- Add new configuration option to the status plugin
Diffstat (limited to 'plugins/http')
-rw-r--r--plugins/http/plugin.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/http/plugin.go b/plugins/http/plugin.go
index 13a76329..86fcb329 100644
--- a/plugins/http/plugin.go
+++ b/plugins/http/plugin.go
@@ -405,7 +405,7 @@ func (s *Plugin) Status() status.Status {
}
// if there are no workers, threat this as error
return status.Status{
- Code: http.StatusNoContent,
+ Code: http.StatusServiceUnavailable,
}
}
@@ -423,7 +423,7 @@ func (s *Plugin) Ready() status.Status {
}
// if there are no workers, threat this as no content error
return status.Status{
- Code: http.StatusNoContent,
+ Code: http.StatusServiceUnavailable,
}
}