Update username consistency error handling.

This commit is contained in:
Greyson Parrelli
2023-11-06 14:33:30 -05:00
parent 6cadf93c43
commit 07aa058a46
19 changed files with 209 additions and 248 deletions

View File

@@ -29,6 +29,10 @@ public class NonSuccessfulResponseCodeException extends IOException {
return code;
}
public boolean is4xx() {
return code >= 400 && code < 500;
}
public boolean is5xx() {
return code >= 500 && code < 600;
}