Enhanced getStatusCode() of the Git driver