ResponseEntity.badRequest constructor

ResponseEntity.badRequest({
  1. Object? body,
  2. Map<String, Object>? headers,
})

Implementation

ResponseEntity.badRequest({
  Object? body,
  Map<String, /* String | List<String> */ Object>? headers,
}) : this(
        HttpStatus.badRequest.value,
        body: body ?? 'Bad Request',
        headers: headers,
      );