Subject: | 503 response from server treated as success |
When the API server just returns a 503 to a check request, the CheckResponse object returns true for the "successful" method. eg:
my $res = $ipdb->check (ip => $ip, max_age => 180, verbose => 999);
unless ($res->successful) {
my $err = $res->errors->[0];
die "Error $err->{status}: $err->{detail}\n";
}
print Dumper ($res);
results in:
$VAR1 = bless( {
'body' => {},
'data' => {},
'meta' => {
'statusMessage' => '503 Service Unavailable',
'statusCode' => 1
}
}, 'WebService::AbuseIPDB::CheckResponse' );
The "successful" method should be returning false in this case.