-
Notifications
You must be signed in to change notification settings - Fork 196
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
Fall through still sets status code when handleError: false #222
Comments
Sounds like a bug. If you feel like investigating, ecstatic's source code isn't actually all that big and only a little hairy. If you send me a pull request I will merge. |
@jfhbrook It looks like it will be a fairly fundamental change. |
Hmmm Yeah OK, I think I misunderstood the issue, it's been a minute since I've looked at this. It's coming back to me, though. I think this issue is captured by #154 and you're right, it's a pretty major refactor. Loosely related is #183 , which would add restify support. My thinking here is to refactor to have a non-middleware API and then maybe a middleware-based adapter? But you're right, this is a bigger issue than I thought. I'm gonna close this issue just cause I think #154 captures it pretty well, but if you disagree we can talk. |
When config is set as
handleError: false
ecstatic is still setting the status code to 403 or 404 if there is no index or static file.I would have expected that it would have left the status alone as
express.static
does.Is there a way to truly not handle errors?
The text was updated successfully, but these errors were encountered: