modifing default haproxy emit codes

2014-04-02 Thread Piavlo
Hi, According to the docs: Haproxy may emit the following status codes by itself : 503 when no server was available to handle the request, or in response to monitoring requests which match the monitor fail condition 504 when the response timeout strikes before the server

Re: modifing default haproxy emit codes

2014-04-02 Thread Patrick Hemmer
: *modifing default haproxy emit codes Hi, According to the docs: Haproxy may emit the following status codes by itself : 503 when no server was available to handle the request, or in response to monitoring requests which match the monitor fail condition 504 when the response

Re: modifing default haproxy emit codes

2014-04-02 Thread Baptiste
Hi, You can use the errorfile directive with a fake 204 status code in the HTTP file to use as an answer. Check the doc and come back here if you did not manage to configure it. Baptiste On Wed, Apr 2, 2014 at 9:16 PM, Piavlo lolitus...@gmail.com wrote: Hi, According to the docs: Haproxy

Re: modifing default haproxy emit codes

2014-04-02 Thread Piavlo
Hi Baptiste , So if i need webserver to respond within 50ms and if not haproxy should reply with 204 i need: timeout server 50ms errorfile 504 /etc/haproxy/errors/204.http where /etc/haproxy/errors/204.http would be a 204 response with no body? What is the exact action for haproxy to