allow catching 404s programmatically