code: protected function handle(ResponseInterface $response)
      {
          $httpException = new HttpException($response->getStatusCode(), $response->getReasonPhrase());
  
          // Not 422 contains information about API Error
          if ($response->getStatusCode() == 422) {
              $error = json_decode((string) $response->getBody());
  
              throw new ApiException(isset($error->Message) ? $error->Message : 'Unprocessable Entity', $httpException);
          }
  
          throw $httpException;
      }
docs: {@inheritdoc}