isServerError method

bool isServerError()

True for status 500-599.

Implementation

bool isServerError() => (this?.statusCode ?? 999) >= 500 && (this?.statusCode ?? 999) <= 599;