proper capturing of 500's for re-authenitcating