return 404 instead of undefined