-
Notifications
You must be signed in to change notification settings - Fork 119
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
Return 404 when file not found #21
Comments
what's the err.code you're getting? it should just return and fallback to the default koa 404 |
Requests to files that exist get handled without a problem though. |
well there's an error right there :p that's what it's a 500 if you can repro with a little stand-alone script with just koa-static I can check it out |
Turns out I was yielding the whole module. Woops :p |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When a file is not found status is set to
500
and not404
. A workaround is easy, but it'd be more elegant if it was supported out of the box.Not sure if this needs adjusting in send/index.js:79 or if it should be overwritten here.
The text was updated successfully, but these errors were encountered: