ReturnType getReturnType() {
        if (request.hasProperty(RETURN_QUERY_PROPERTY)) {
            String type = request.getProperty(RETURN_QUERY_PROPERTY);
            return switch (type) {
                case "content" -> CONTENT;
                case "status" -> STATUS;
                default -> throw new BadRequestException("return=" + type + " is an illegal argument. Only " +
                                                                 CONTENT.name() + " and " + STATUS.name() + " are allowed");
            };
        } else {
            return CONTENT;
        }
    }
Represents a {@link ContentRequest}, and contains common functionality for content requests for all content handlers.

@author Ulf Lilleengen
configserver/src/main/java/com/yahoo/vespa/config/server/http/ContentRequest.java