title: How to specify HTTP response code in next.js
body: <p>I have a Next.js v12 application written in TypeScript.</p>
  <p>I have a <code>_error.tsx</code> page providing custom UI experience for various errors, including <code>410</code>, <code>404</code> and other ones. The issue is, whatever API error triggers the appearance of this page on the server-side, the client browser GETs this page from server with the HTTP status code of <code>500</code>.</p>
  <p>How could I customize that status code, so that for example the page for <code>410</code> actually has the HTTP status code of <code>410</code>?</p>