<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hello.</div><div><br></div>We've recently noticed a difference in behavior between squid v3 and v4.<div><br></div><div>On HTTP response with non-standard 4-digits HTTP code, for example something like this:</div><div><br></div><div><div><div>HTTP/1.1 5009 Update Error</div><div>Connection: Closed</div><div><br></div><div>{"code":500911,"message":"update record error"}</div></div><div><br></div><div>squid 3 just passes this response to the client, but squid 4 returns 502 with ERR_INVALID_RESP template and writes into cache.log:</div><div><br></div><div>WARNING: HTTP: Invalid Response: Bad header encountered from … AKA …<br></div><div><br></div><div>While I understand that 4-digits response code is not standard I'd like to know:</div><div><br></div><div>Is it expected behavior and is there an option to change squid 4 behavior to match squid 3?</div><div><br></div><div>Thanks!</div><div><br></div>-- <br><div dir="ltr" class="gmail_signature">With best regards, Ivan Larionov.</div></div></div></div></div></div></div>