ServiceResult.onHttpAccessError constructor

ServiceResult.onHttpAccessError(
  1. int httpCode,
  2. Map<String, String> headers,
  3. String body
)

Implementation

factory ServiceResult.onHttpAccessError(
    int httpCode, Map<String, String> headers, String body) {
  return ServiceResult._(
      httpCode: httpCode,
      headers: headers,
      result: ServiceExecutionResult.failure_invalid_request,
      entity: body);
}