add 404 error support