Check token response error code
Check token response error code

Currently, the loop which tries the token requests only checks for
errors in making the requests. It does not check the response status
before marking the response as successful. This change moves the check
for the status code to the for loop.

csrwng/origin,openshift/origin,bparees/origin,bparees/origin,deads2k/origin,mahak/origin,mahak/origin,hroyrh/origin,akram/origin,mfojtik/origin,soltysh/origin,mfojtik/origin,soltysh/origin,gabemontero/origin,hroyrh/origin,jsafrane/origin,gabemontero/origin,jsafrane/origin,sallyom/origin,openshift/origin,deads2k/origin,akram/origin,csrwng/origin,mahak/origin,sallyom/origin,openshift/origin,mfojtik/origin,hroyrh/origin,sallyom/origin,bparees/origin,csrwng/origin,deads2k/origin,akram/origin,soltysh/origin,gabemontero/origin,jsafrane/origin