private static HttpResponse internalRenderStatus(ServiceRequestContext ctx,
                                                     RequestHeaders headers,
                                                     HttpStatus status,
                                                     @Nullable Throwable cause) {
        final ServiceConfig serviceConfig = ctx.config();
        final AggregatedHttpResponse res =
                serviceConfig.server().config().errorHandler()
                             .renderStatus(ctx, serviceConfig, headers, status, null, cause);
        assert res != null;
        return res.toHttpResponse();
    }
Converts the specified {@link Throwable} to an {@link HttpResponse}.
core/src/main/java/com/linecorp/armeria/server/DefaultServerErrorHandler.java