Handler function for Dio bad response exception.
bool? Function(DioException exception)? badResponse;