turn annoying 500 errors into less annoying 404s