Skip to content
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

UnrecognizedURLError should send 404 #15

Closed
wants to merge 1 commit into from

Conversation

kitsunde
Copy link
Contributor

@kitsunde kitsunde commented Dec 1, 2016

It's already giving 500, what we need to do is specifically check for UnrecognizedURLError and send out 404.

@@ -58,8 +58,8 @@ function fastbootExpressMiddleware(distPath, options) {
}

function failure(error) {
if (error.name !== "UnrecognizedURLError") {
res.status(500);
if (error.name === "UnrecognizedURLError") {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'd need an if/else here to set either 404 or 500. Also tests please.

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.

None yet

2 participants