Skip to content

fix(node:express): return 404 status code when partial can't be found #82

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

Merged
merged 1 commit into from
Feb 13, 2014
Merged

Conversation

zfarrell
Copy link
Contributor

Previously, a 200 status code would be sent when a partial couldn't be rendered.

Previously, a 200 status code would be sent when a partial couldn't be rendered.
@DaftMonk
Copy link
Member

I think I'd agree with logging that the partial couldn't be found, but we shouldn't need to use res.status(404), since res.send(404) does the same thing.

@zfarrell
Copy link
Contributor Author

.. res.send(404) does the same thing

It would return the correct response code, but we'd lose the 404.html template.

@DaftMonk
Copy link
Member

Good point, I'll take a closer look at this a little later.

DaftMonk added a commit that referenced this pull request Feb 13, 2014
fix(node:express): return 404 status code when partial can't be found
@DaftMonk DaftMonk merged commit b37eb00 into angular-fullstack:master Feb 13, 2014
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.

2 participants