remove item from cache only if protocol error is in the response

issue #302 

I am not sure if I follow the change here. I thought you only wanted to make the change for 500. If the refresh token is expired, doesn't it throw exception here?