title: pjax - render page on error
body: <p>I'm using pjax and I'd like to configure it to render the page (replace the html) as if everything is normal, even though the page responds with a non-200 code (404, 500).</p>
  
  <p>My 404 and 500 pages are tweaked to look nice, and I don't need pjax to refresh the page.</p>
  
  <p>I couldn't figure out how to do this from all the documentation I've read, including the <a href="https://github.com/defunkt/jquery-pjax" rel="nofollow">original git repo</a>. Any help is welcome.</p>