Nagios check_http plugin get OK returned for an expected error code
If you have a webserver that you want to check, but it requires authentication, you can still perform a check without seeing an error code. So for example, if you had a webserver where you wanted to check that the web server was responding on port 80, but didn’t want to have the plugin login […]
More...