Moving module; adding handling of http errors