Closed domenic closed 9 years ago
Set handleError to false and deal with the 404 in the callback. Something like:
ecstatic({ root: __dirname + '/public', handleError: false })(req, res, function(err) {
if (res.statusCode === 404) {
// Do something about it
It'd be cool if I could intercept 404s and then serve up my own response.