Add 404 function so that application-level code can throw a 404