static AggregatedHttpResponse of(HttpStatus status, MediaType mediaType, HttpData content,
                                     HttpHeaders trailers) {
        requireNonNull(status, "status");
        requireNonNull(mediaType, "mediaType");
        requireNonNull(content, "content");
        requireNonNull(trailers, "trailers");

        final ResponseHeaders headers = ResponseHeaders.builder(status)
                                                       .contentType(mediaType)
                                                       .build();
        return of(headers, content, trailers);
    }
Creates a new HTTP response of the specified {@link HttpStatus}.

@param mediaType the {@link MediaType} of the response content
@param content the content of the response
@param trailers the HTTP trailers

@throws IllegalArgumentException if the specified {@link HttpStatus} is
                                 {@linkplain HttpStatus#isInformational() informational}.
core/src/main/java/com/linecorp/armeria/common/AggregatedHttpResponse.java