Don't send a 404 directly; just create a 404 error and pass it into next()