HTTP Exception handler is incorrect
In class Client. The method does not return a Throwable in all cases.
protected function normalizeClientException(ClientException $clientException): \Throwable
{
switch ($clientException->getCode()) {
case 400:
case 417:
case 422:
case 415:
return new Exception\BadRequestException($clientException);
case 401:
case 403:
return new Exception\AuthenticationFailedException($clientException);
case 404:
return new Exception\NotFoundException($clientException);
}
}