Skip to content

fix: throw 404 statusCode instead of 400#418

Merged
danielroe merged 3 commits intonpmx-dev:mainfrom
Flo0806:feat/invalid-package-name
Jan 30, 2026
Merged

fix: throw 404 statusCode instead of 400#418
danielroe merged 3 commits intonpmx-dev:mainfrom
Flo0806:feat/invalid-package-name

Conversation

@Flo0806
Copy link
Copy Markdown
Contributor

@Flo0806 Flo0806 commented Jan 30, 2026

fixes: #407


This should handle the error more graceful for vercel and should show the error.vue instead of vercel's server function crashed page.

@vercel
Copy link
Copy Markdown

vercel Bot commented Jan 30, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
npmx.dev Ready Ready Preview, Comment Jan 30, 2026 1:01pm
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
docs.npmx.dev Ignored Ignored Preview Jan 30, 2026 1:01pm
npmx-lunaria Ignored Ignored Jan 30, 2026 1:01pm

Request Review

@danielroe danielroe changed the title fix: handle invalid names more graceful fix: throw 404 statusCode instead of 400 Jan 30, 2026
@Flo0806
Copy link
Copy Markdown
Contributor Author

Flo0806 commented Jan 30, 2026

And I thought: should I change all to 404 😅

Merged via the queue into npmx-dev:main with commit a4c8278 Jan 30, 2026
14 checks passed
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.

"This Serverless Function has crashed." when visiting URL with typo

2 participants