add 403 forbidden in error jmx

This commit is contained in:
garnier-quentin 2019-06-20 14:22:39 +02:00
parent 9d832542f3
commit 452fc62e44
1 changed files with 5 additions and 1 deletions

View File

@ -177,7 +177,11 @@ sub check_error {
my ($self, %options) = @_;
# 500-599 an error. 400 is an attribute not present
if ($options{response}->status() >= 500 || $options{response}->status() == 401 || $options{response}->status() == 408) {
my $status = $options{response}->status();
if ($status >= 500 ||
$status == 401 ||
$status == 403 ||
$status == 408) {
$self->{output}->add_option_msg(short_msg => "protocol issue: " . $options{response}->error_text());
$self->{output}->option_exit();
}