diff --git a/centreon/plugins/backend/http/curl.pm b/centreon/plugins/backend/http/curl.pm index e51d97bcc..493309c84 100644 --- a/centreon/plugins/backend/http/curl.pm +++ b/centreon/plugins/backend/http/curl.pm @@ -467,7 +467,7 @@ sub get_code { sub get_message { my ($self, %options) = @_; - return $http_code_explained->{$self->{response_code}}; + return defined($http_code_explained->{$self->{response_code}}) ? $http_code_explained->{$self->{response_code}} : 'Unknown code'; } sub get_certificate {