404 Pages
When a user enters a route that doesn’t exist in your app, Hana will look for a_404 file, and render the component exported from that file.
src/pages/_404.tsx
General Error Pages
When an error is thrown within your application, Hana will catch the error and display whatever component is in your_error file.
src/pages/_error.tsx
_error.tsx file in the pages/users directory that will be used for all errors that occur on routes in the /users directory.
_error.tsx file in the pages/users directory will be used for all errors that occur on routes in the /users directory. The _error.tsx file in the pages directory will be used for all other errors.
