title: Next.js return the 404 error page in getInitialProps
body: <p>Currently I am following this example on how to redirect users in getInitialProps</p>
  
  <p><a href="https://github.com/zeit/next.js/wiki/Redirecting-in-%60getInitialProps%60" rel="noreferrer">https://github.com/zeit/next.js/wiki/Redirecting-in-%60getInitialProps%60</a></p>
  
  <p>The problem is, if I want to return 404 like this, it will return a blank page instead of the usual Next.js 404 error page.</p>
  
  <pre><code>context.res.writeHead(404)
  context.res.end();
  </code></pre>
  
  <p>Please note I know using ExpressJs and using statuscode 404 works, however, for this project I am not allowed to use ExpressJs so I need to use typical nodejs writeHead to do it.</p>