Skip to content

fix: restored createError import to handle 404 routes properly #127

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rohansen856
Copy link

Issue Solved: #126

PR summary

This PR solves issue #126 by uncommenting this line: var createError = require('http-errors'); in the file /src/app.js.
Now navigating to any undefined page throws proper 404 (not found) error.

Screenshots

Previously

Screenshot from 2025-05-14 02-08-18

After this PR

Screenshot from 2025-05-14 02-06-53

This PR is fairly simple with ninor changes in 1 file and ready for review.
Thanks.

Signed-off-by: rohansen856 <rohansen856@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant