Improve http_req for error