Switched from Resty to Unirest library, because Resty does not support HEAD requests and is not well-maintained