Http check - 401 needs to be as critical

Hi Team,

We have few critical http checks… where we wanted to notify every status code except 200 as critical.

But sometimes when this http check says unauthorize, it is giving as warning…

It show as critical for 401 or any other status except 200.

Here, mY http check from hostfile… Can you please advise on this?

vars.aws_http_vhosts["***********************"] = {
http_uri = “***************y”
http_port = 9090

take a look at the docs:
There exists the parameter “-e” where you can define which text or state you expect.