better error handling on http adapter
Better http errors handling #11