title: apply rewrite rule based on 404 response code
body: <p>i'm trying to achaive this , </p>
  
  <pre><code>if request  hit www.imagesserver.com/public/images/view/3421.png
  </code></pre>
  
  <p>then</p>
  
  <pre><code>if response == 404
  </code></pre>
  
  <p>do</p>
  
  <p>redirect  or rewrite to </p>
  
  <pre><code>www.imagesserver.com/public/images/view/defualt.png
  </code></pre>
  
  <p>this only apply for this path public/images/view/*.png , what is the best way to achieve this logic</p>