Updated setup procedure
Improved detection of configuration error and better handling of http errors