Almost working 404 handling
404 works for some cases