isServerError property

bool get isServerError

Whether the status code is in the 5xx range (500+).

Implementation

bool get isServerError => statusCode >= 500;