> On May 15, 2017, at May 15, 6:35 PM, Joao Morais <[email protected]> > wrote: > > This is working but sounds a hacky workaround since I’m using another status > code. If I try to use: > > errorfile 413 /usr/local/etc/haproxy/errors/413.http > http-request deny deny_status 413 if { req.body_size gt 10485760 } > > ... HAProxy complains with: > > [WARNING] 135/001448 (27) : parsing [/etc/haproxy/haproxy.cfg:15] : status > code 413 not handled by 'errorfile', error customization will be ignored. > [WARNING] 135/001448 (27) : parsing [/etc/haproxy/haproxy.cfg:89] : status > code 413 not handled, using default code 403. > > How should I configure HAProxy in order to deny with 413?
You’ve already found it. AFAIK, that’s the only way. -Bryan

