Subject: | Should report when site is inaccessible |
It should differentiate between the case of internal server error (500)
and the cases when cannot connect to the server:
perl -MLWP::UserAgent -e 'my $ua = LWP::UserAgent->new; my $req =
HTTP::Request->new(GET => "http://sdhfjsdhk.com"); my $res =
$ua->request($req); print $res->code, "\n"'
500
Moreover it should provide yet another status code when the network is
inaccessible. When I shut down my network card I receive the same "500"
status. This is wrong.