static HttpResponse of(HttpStatus status) {
        requireNonNull(status, "status");
        checkArgument(!status.isInformational(), "status: %s (expected: a non-1xx status)", status);

        if (status.isContentAlwaysEmpty()) {
            return new OneElementFixedHttpResponse(ResponseHeaders.builder(status)
                                                                  .endOfStream(true)
                                                                  .build());
        } else {
            return of(status, MediaType.PLAIN_TEXT_UTF_8, status.toHttpData());
        }
    }
Creates a new HTTP response of the specified {@link HttpStatus}.

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