/** * @param ResponseInterface $response * @param ClientInterface|GuzzleHttp5\ClientInterface $client * @return bool * @internal param ClientInterface $client */ public function handle(ResponseInterface $response, \GuzzleHttp5\ClientInterface $client) { return $response->getStatusCode() === 204; }
private function notSuccessful(ResponseInterface $response) { return !in_array($response->getStatusCode(), [200, 201, 204, 504]); }