isValidationError property

bool get isValidationError

Checks if the status code represents a validation error

Implementation

bool get isValidationError => this == 422;