isClientError property
bool
get
isClientError
Checks if response indicates a client-side error (4xx).
Implementation
bool get isClientError => statusCode >= 400 && statusCode < 500;
Checks if response indicates a client-side error (4xx).
bool get isClientError => statusCode >= 400 && statusCode < 500;