Added management of http errors
Added management of http error code