É possível tratar mensagens 400/403/408/500/502/503/504 e exibir uma mensagem mais amigável.
No caminho /etc/haproxy/errors existem as mensagens padrão, altere conforme a necessidade.
Criar o arquivo /etc/haproxy/errors/503-fora_do_ar.http e alterar seu conteúdo:
# vi /etc/haproxy/errors/503-fora_do_ar.http
HTTP/1.0 503 Service Unavailable
Cache-Control: no-cache
Connection: close
Content-Type: text/html; charset=utf-8
<html>
<body>
<center><h1>Serviço não disponível</h1></center>
<center><h1>Sistema em manutenção</h1></center>
</body>
</html>
Ajustar o configuração do HAProxy
# vi haproxy.cfg
backend wiki
mode http
server SERV2 10.0.0.2:80 check
errorfile 503 /etc/haproxy/errors/503-fora_do_ar.http
Testar se o arquivo de configuração esta valido
# haproxy -c -f /etc/haproxy/haproxy.cfg
Configuration file is valid
Reinicie para validar as configurações
# /etc/init.d/haproxy restart