优化http模块异常捕获