@Override
    public HttpResponse handle(ServiceRequestContext ctx, Status status, AggregatedHttpResponse response) {
        final MediaType grpcMediaType = response.contentType();
        if (grpcMediaType != null && grpcMediaType.isJson()) {
            return jsonUnframedGrpcErrorHandler.handle(ctx, status, response);
        } else {
            return textUnframedGrpcErrorHandler.handle(ctx, status, response);
        }
    }
Returns an HTTP response based on its content type.
If the content type of the response is JSON, this method delegates the handling to a JSON-specific
unframed gRPC error handler. Otherwise, it delegates to a text-based unframed gRPC error handler.

@param ctx the service context.
@param status the gRPC {@link Status} code.
@param response the gRPC response.

@return the {@link HttpResponse}.
grpc/src/main/java/com/linecorp/armeria/server/grpc/DefaultUnframedGrpcErrorHandler.java