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