DioException.badResponse constructor

DioException.badResponse({
  1. required int statusCode,
  2. required RequestOptions requestOptions,
  3. required Response response,
})

Implementation

factory DioException.badResponse({
  required int statusCode,
  required RequestOptions requestOptions,
  required Response response,
}) =>
    DioException(
      type: DioExceptionType.badResponse,
      requestOptions: requestOptions,
      response: response,
      error: null,
      message: _badResponseExceptionMessage(statusCode),
    );