isClientErrorStatusCode static method
Check if HTTP status code indicates client error
statusCode - The HTTP status code
Returns true if status code indicates client error
Implementation
static bool isClientErrorStatusCode(int statusCode) {
return statusCode >= 400 && statusCode < 500;
}