From e0c3c22748a32e2b9b3f07fb2bd05bb5c27d3aee Mon Sep 17 00:00:00 2001 From: Nicholas Capo Date: Tue, 13 Jan 2015 00:10:05 +0000 Subject: [PATCH] Update HTTP Check documentation: 503 -> 429 --- website/source/docs/agent/checks.html.markdown | 2 +- website/source/docs/agent/http.html.markdown | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/website/source/docs/agent/checks.html.markdown b/website/source/docs/agent/checks.html.markdown index b3ee932608..2102ebb607 100644 --- a/website/source/docs/agent/checks.html.markdown +++ b/website/source/docs/agent/checks.html.markdown @@ -22,7 +22,7 @@ There are three different kinds of checks: * HTTP + Interval - These checks make an `HTTP GET` request every Interval (e.g. every 30 seconds) to the specified URL. The status of the service depends on the HTTP Response Code. - `200` is passing, `503` is warning and anything else is failing. + any `2xx` code is passing, `429 Too Many Requests` is warning and anything else is failing. This type of check should be preferred over a script that for example uses `curl`. * Time to Live (TTL) - These checks retain their last known state for a given TTL. diff --git a/website/source/docs/agent/http.html.markdown b/website/source/docs/agent/http.html.markdown index b67bab02ae..f383a71a3e 100644 --- a/website/source/docs/agent/http.html.markdown +++ b/website/source/docs/agent/http.html.markdown @@ -450,7 +450,7 @@ field is not used by Consul, and is meant to be human readable. If a `Script` is provided, the check type is a script, and Consul will evaluate the script every `Interval` to update the status. -An `HTTP` check will preform an HTTP GET request to the value of `HTTP` (expected to be a URL) every `Interval`. If the response is `200` the check is passing, if the response is `503` the check is warning, otherwise the check is critical. +An `HTTP` check will preform an HTTP GET request to the value of `HTTP` (expected to be a URL) every `Interval`. If the response is any `2xx` code the check is passing, if the response is `429 Too Many Requests` the check is warning, otherwise the check is critical. If a `TTL` type is used, then the TTL update APIs must be used to periodically update the state of the check.