@ParameterizedTest
    @CsvSource({ "H1C, false", "H1C, true", "H2C, false", "H2C, true" })
    void protocolErrorsWithException(SessionProtocol protocol, boolean verboseResponses) {
        final WebClient client = WebClient.of((verboseResponses ? verboseServer : server).uri(protocol));
        final AggregatedHttpResponse res = client
                .execute(HttpRequest.of(HttpMethod.POST, "/", MediaType.PLAIN_TEXT_UTF_8, "very_large"))
                .aggregate()
                .join();
        assertThat(res.status()).isSameAs(HttpStatus.REQUEST_ENTITY_TOO_LARGE);
        if (verboseResponses) {
            assertThat(res.content().toStringUtf8())
                    .startsWith("Status: 413\nDescription: Request Entity Too Large\nStack trace:\n" +
                                ContentTooLargeException.class.getName() + ": ");
        } else {
            assertThat(res.content().toStringUtf8())
                    .isEqualTo("Status: 413\nDescription: Request Entity Too Large\n");
        }
        assertThat(res.trailers()).isEmpty();
    }
An {@link HttpStatusException} with the 'SUCCESS' class should not contain any stack trace,
even if {@link ServiceConfig#verboseResponses()} is enabled.
core/src/test/java/com/linecorp/armeria/server/DefaultServerErrorHandlerTest.java