[Reviewer: Rob] Check rc of get_auth

Rob, can you review this change to return a 504 in the case where getting an authentication vector fails because the request to Homestead times out.

Fixes #603 
httpconnection.cpp does this (a LOG_ERROR including the rc and reason string)