validateStatus property
validateStatus defines whether the request is successful for a given
HTTP response status code. If validateStatus returns true ,
the request will be perceived as successful; otherwise, considered as failed.
Implementation
late ValidateStatus validateStatus;