title: httprouter configuring NotFound
body: <p>I'm using <a href="https://github.com/julienschmidt/httprouter" rel="nofollow"><code>httprouter</code></a> for an API and I'm trying to work out how to handle 404s. It does say in the <a href="http://godoc.org/github.com/julienschmidt/httprouter#Router.NotFound" rel="nofollow">docs</a> that 404's can be handled manually but I don't really have an idea how to write my own <strong>custom handler</strong>.</p>
  
  <p>I've tried the following after my other routes...</p>
  
  <pre><code>router.NotFound(pageNotFound)
  </code></pre>
  
  <p>But I get the error <code>not enough arguments in call to router.NotFound</code>.</p>
  
  <p>If anyone could point me in the right direction it would be great.</p>