isServerError property

bool get isServerError

Whether the response is a server error (5xx).

Implementation

bool get isServerError => status >= 500;