Ticket #5104. Return 503 status from /replicas_status if not ok

This commit is contained in:
nagorny 2020-02-14 17:20:27 +03:00
parent f055239cde
commit 15d3176d40

View File

@ -76,6 +76,7 @@ void ReplicasStatusHandler::handleRequest(Poco::Net::HTTPServerRequest & request
}
else
{
response.setStatusAndReason(Poco::Net::HTTPResponse::HTTP_SERVICE_UNAVAILABLE);
response.send() << message.rdbuf();
}
}