[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 
LOG_DEBUG feels a bit too low - I suggest LOG_WARNING. Unless something else generates an error of LOG_WARNING or higher showing the HTTP result code, we should include it here.