public function validateUrl($url, $options = []) {
        try {
            $query = [
                'out'    => 'json',
                'parser' => $this->parser,
                'doc'    => (string) $url,
            ];
            
            if (isset($options['checkErrorPages']) && $options['checkErrorPages'] === true) {
                $query['checkerrorpages'] = true;
            }
            
            $response = $this->httpClient->get('', [
                'query' => $query,
            ]);

            return new Response($response);
        } catch (RequestException $e) {
            throw new ServerException($e->getMessage());
        }
    }