Set 401 uptime cas as OK.

This commit is contained in:
Christian P. MOMON 2022-11-10 22:58:53 +01:00
parent d309c4156a
commit 34550c8ab4

View file

@ -102,7 +102,7 @@ public class Uptime
{ {
this.datetime = LocalDateTime.now(); this.datetime = LocalDateTime.now();
this.code = code; this.code = code;
if (HttpStatusCategory.isSuccess(code)) if ((HttpStatusCategory.isSuccess(code)) || (HttpStatusCategory.isUnauthorized(code)))
{ {
this.status = UptimeStatus.OK; this.status = UptimeStatus.OK;
} }