title: Get reason for failed LWP::Simple head request
body: <p>I have migrated my scrilpts from CentOS 7 to 8 and there's a new Perl version. I have the folowing snippet that uses <code>head</code> to check if a URL exists:</p>
  <pre><code>#!/bin/perl
  use strict;
  use warnings;
  use LWP::Simple;
  
  my $sitemapurl = &quot;https://www.prosinger.net&quot;;
  if (head($sitemapurl)) {
      ...
  }
  else {
      print &quot;The $sitemapurl doesn't exist\n&quot;;
      exit(1);
  }
  </code></pre>
  <p>It now always returns that the URL doesn't exist. I'm quite sure that this has to do something with https (I have perl-LWP-Protocol-https installed), but I'm not sure how to get any feedback information from head method to check what the error code is.
  Any ideas?</p>