private function checkIfResponseIsCorrect(ResponseInterface $response)
    {
        if (!in_array($response->getStatusCode(), [200, 201, 202, 204])) {
            throw new PactBrokerException('Response_code: ' . $response->getStatusCode() . ' Response_data:' . $response->getBody()->getContents());
        }
    }