add error process of the http post