0

I was asked to calculate the availability of a web site by using a simple way: use all the non-5xx http status codes / all status codes.

Is this correct? I'm new to this concept, so any response is welcome:).

Ivan Glasenberg
  • 29,865
  • 2
  • 44
  • 60
  • What do you mean with 'Use non 5xx http status codes', your question is unclear. – Evert Apr 30 '21 at 06:38
  • @Evert, it means that status code not starts with 5, like 301,200,404 – Ivan Glasenberg Apr 30 '21 at 08:14
  • Ok, I understand that, but what do you mean with 'use'. Perhaps you could try to just edit your question and phrase it in a different way. I suspect it's an easily answerable question but it's hard to understand right now. – Evert Apr 30 '21 at 16:40
  • Do you mean to ask something like: "Is it enough to check for 5xx status codes to determine if a service is unavailable?" – Evert Apr 30 '21 at 16:47
  • @Evert, yes, that's what I mean. – Ivan Glasenberg May 01 '21 at 13:59
  • then I would say.. mostly yes, but there's other failure modes like your connection being refused, connection timing out that *don't* give you a HTTP status code but the server is still definitely broken. – Evert May 01 '21 at 18:59
  • @Evert, thanks for your reply:). Could you please post an answer? – Ivan Glasenberg May 04 '21 at 01:16

0 Answers0