From: Stephen L Johnson Date: Wed, 26 Jan 2000 05:40:28 +0000 (+0000) Subject: responde code 401 (Authorization Required) is now treated as a green status X-Git-Tag: spong_2_6c^0 X-Git-Url: http://git.etc.gen.nz/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d097971112263d099f56f483ddd06beb6b7c07d;p=spong.git responde code 401 (Authorization Required) is now treated as a green status instead of a yellow status. --- diff --git a/src/lib/Spong/Network/plugins/check_http b/src/lib/Spong/Network/plugins/check_http index 1e77210..48cc074 100755 --- a/src/lib/Spong/Network/plugins/check_http +++ b/src/lib/Spong/Network/plugins/check_http @@ -22,7 +22,8 @@ sub check_http { if( $code >= 500 ) { $color = "red"; $summary = "error - $code - $file"; - } elsif( $code >= 400 ) { + # Treat a 401 code (Authorization Required) as a green status + } elsif( $code >= 400 && $code != 401) { if( $color ne "red" ) { $color = "yellow"; $summary = "warning - $code - $file"; } } else {