public AbstractResponse getErrorResponse(Throwable e) {
        return getErrorResponse(AbstractResponse.DEFAULT_THROTTLE_TIME, e);
    }
Get an error response for a request
clients/src/main/java/org/apache/kafka/common/requests/AbstractRequest.java