title: Haproxy errorfile cannot be read
body: <p>I have the following Haproxy config:</p>
  
  <pre><code>frontend http-in
      mode http
      bind :80
  
      option forwardfor
      option httplog
      reqadd X-Forwarded-Proto:\ http
  
      default_backend http-routers
  
      errorfile 502 /var/haproxy/404.http
      acl is_internal_error status eq 404
      rspdeny . if is_internal_error
  </code></pre>
  
  <p>When I hit the url for non existing domain, ex: <a href="http://test.example.com" rel="nofollow noreferrer">http://test.example.com</a>
  I receive a timeout error (408). </p>
  
  <p>However, when I retrieve the line <code>errorfile 502 /var/haproxy/404.http</code>, I can see the default error msg of 502 error code.</p>
  
  <p>Can anyone tell why Haproxy cannot read my file  <code>/var/haproxy/404.http</code>?</p>