diff --git a/src/Http/GuzzleHttpClient.php b/src/Http/GuzzleHttpClient.php index f50578e..7f4f73f 100644 --- a/src/Http/GuzzleHttpClient.php +++ b/src/Http/GuzzleHttpClient.php @@ -235,6 +235,10 @@ private function tokenIsExpired(): bool */ private function parseResponse(ResponseInterface $response): array { + if ($response->getStatusCode() === 204) { + return []; + } + try { return (array) json_decode((string) $response->getBody(), true, 512, JSON_THROW_ON_ERROR); } catch (JsonException $e) {