throw 404 if no matching endpoint
cope with no application found