[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