fix 404 error handling to follow api change