ResponseEntity.internalServerError constructor

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

Implementation

ResponseEntity.internalServerError({
  Object? body,
  Map<String, /* String | List<String> */ Object>? headers,
}) : this(
        HttpStatus.internalServerError.value,
        body: body ?? 'Internal Server Error',
        headers: headers,
      );