<div dir="ltr"><div><div><div><div><div>Hi All,<br></div>With the help of Squid I want to return a custom payload for 404 response returned from web server. I have configured below acl to achieve the same <br><br>acl denied_status_404 http_status 404 <br>deny_info  <a href="http://errorpage.com">http://errorpage.com</a> denied_status_404<br><br></div>with the above configuration squid is sending 302 redirection to client browser . But I want squid to retain the same http status code (404) when responds back. <br></div>Basically I want to modify  only the payload of the webserver response with same 404 status code.<br></div>I know this can be achieved in squid version 3.2. But our server is running with squid version 3.1.20 . Is there any way we can achieve this in squid 3.1?<br><br></div>Does the below configuration work? <br><div><br>acl denied_status_404 http_status 404 rep_mime_type -i ^text/html<br>deny_info  <a href="http://errorpage.com">http://errorpage.com</a> denied_status_404<br><br></div><div>Now squid the squid is spoofing all the 404 responses irrespective of content type(html/javascript). I don't want squid to spoof the 404 response received from API payload.  <br></div><div>Does squid classify the difference between a webpage and API payload?<span style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:black"><br></span></div><div><br></div><div>Regards,<br></div><div>Saravanan N<br></div></div>