private ApiResponses buildResponses(OpenAPI openAPI, FunctionInvocationWrapper function, String[] mediaTypes, GenericResponseService genericResponseService) {
		Type returnType = function.getOutputType();
		Content content = genericResponseService.buildContent(openAPI.getComponents(), null, mediaTypes, null, returnType);
		ApiResponses apiResponses = new ApiResponses();
		ApiResponse apiResponse = new ApiResponse();
		apiResponse.setContent(content);
		apiResponses.put(String.valueOf(HttpStatus.OK.value()), apiResponse.description(HttpStatus.OK.getReasonPhrase()));
		return apiResponses;
	}
Build responses api responses.

@param openAPI                the open api
@param function               the function
@param mediaTypes             the media types
@param genericResponseService the generic response service
@return the api responses
springdoc-openapi-starter-common/src/main/java/org/springdoc/core/providers/SpringCloudFunctionProvider.java