Do not retry when http code is 401: Unauthorized.
Read config file in different locations and set global config variables based on that.