[update] add exception handle and 301 process