<h1 dir="auto">Bug report</h1>
<h2 dir="auto">Describe the bug</h2>
<p dir="auto"><code class="notranslate">http://localhost:3000/_error</code> reloads indefinitely.</p>
<h2 dir="auto">To Reproduce</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="yarn create next-app test
cd test
yarn dev"><pre class="notranslate"><code class="notranslate">yarn create next-app test
cd test
yarn dev
</code></pre></div>
<p dir="auto">And go to <code class="notranslate">http://localhost:3000/_error</code>.</p>
<h2 dir="auto">Expected behavior</h2>
<p dir="auto">I expect to have a 404 error, similar to calling <code class="notranslate">http://localhost:3000/_document</code>, <code class="notranslate">http://localhost:3000/_app</code> or any other non-existing page.</p>
<h2 dir="auto">System information</h2>
<ul dir="auto">
<li>OS: Linux</li>
<li>Browser (if applies): Chrome</li>
<li>Version of Next.js: 9.0.5</li>
</ul>
<h1 dir="auto">Bug report</h1>
<h2 dir="auto">Describe the bug</h2>
<p dir="auto">When you visit <code class="notranslate">/_error</code> in development the page reloads non-stop and the error page is rendered with a status of 200 and text of <code class="notranslate">An unexpected error occurred</code>.</p>
<h2 dir="auto">To Reproduce</h2>
<p dir="auto">Steps to reproduce the behavior, please provide code snippets or a repository:</p>
<ol dir="auto">
<li>Create minimal Next.js project <code class="notranslate">yarn create next-app error-loop</code></li>
<li>Visit <code class="notranslate">/_error</code> in your browser</li>
<li>See the error</li>
</ol>
<h2 dir="auto">Expected behavior</h2>
<p dir="auto">Still being discussed, most likely to render 404 similar to <code class="notranslate">_app</code> and <code class="notranslate">_document</code></p>
<h2 dir="auto">Screenshots</h2>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/22380829/61557864-fce93100-aa2a-11e9-97e7-700741f6b75d.gif"><img src="https://user-images.githubusercontent.com/22380829/61557864-fce93100-aa2a-11e9-97e7-700741f6b75d.gif" alt="error-loop" data-animated-image="" style="max-width: 100%;"></a></p>
<h2 dir="auto">System information</h2>
<ul dir="auto">
<li>OS: [e.g. macOS, Windows] any</li>
<li>Browser (if applies) [e.g. chrome, safari] any</li>
<li>Version of Next.js: [e.g. 6.0.2] latest (9.0.2)</li>
</ul>
<h2 dir="auto">Additional context</h2>
<p dir="auto">Related PR <a href="https://github.com/zeit/next.js/pull/8033" data-hovercard-type="pull_request" data-hovercard-url="/vercel/next.js/pull/8033/hovercard">here</a></p>