protected function handleTemporaryCredentialsBadResponse(BadResponseException $e)
    {
        $response = $e->getResponse();
        $body = $response->getBody();
        $statusCode = $response->getStatusCode();

        throw new CredentialsException(
            "Received HTTP status code [$statusCode] with message \"$body\" when getting temporary credentials."
        );
    }
protected function handleTemporaryCredentialsBadResponse(BadResponseException $e)
    {
        $response = $e->getResponse();
        $body = $response->getBody();
        $statusCode = $response->getStatusCode();

        throw new CredentialsException(
            "Received HTTP status code [$statusCode] with message \"$body\" when getting temporary credentials."
        );
    }
protected function handleTemporaryCredentialsBadResponse ( BadResponseException $ e ) { $ response = $ e -> getResponse ( ) ; $ body = $ response -> getBody ( ) ; $ statusCode = $ response -> getStatusCode ( ) ; throw new CredentialsException ( "Received HTTP status code [$statusCode] with message \"$body\" when getting temporary credentials." ) ; }
Handle a bad response coming back when getting temporary credentials.

@param BadResponseException $e

@throws CredentialsException
Handle a bad response coming back when getting temporary credentials .