src/ValidationSubscriber.php
private function handleBadResponse(BadResponseException $e)
    {
        if (isset(self::$gone[$e->getResponse()->getStatusCode()])) {
            $this->storage->delete($e->getRequest());
        }

        throw $e;
    }
private function handleBadResponse(BadResponseException $e)
    {
        if (isset(self::$gone[$e->getResponse()->getStatusCode()])) {
            $this->storage->delete($e->getRequest());
        }

        throw $e;
    }
private function handleBadResponse ( BadResponseException $ e ) { if ( isset ( self :: $ gone [ $ e -> getResponse ( ) -> getStatusCode ( ) ] ) ) { $ this -> storage -> delete ( $ e -> getRequest ( ) ) ; } throw $ e ; }
Handles a bad response when attempting to validate.

If the resource no longer exists, then remove from the cache.

@param BadResponseException $e Exception encountered

@throws BadResponseException
Handles a bad response when attempting to validate .