Handle httpt errors