}
}
private void errorResponse(RestRequest request, RestChannel channel, Throwable e) {
try {
channel.sendResponse(new XContentThrowableRestResponse(request, e));
logger.error("errorResponse", e);
} catch (IOException ioEx) {
logger.error("Failed to send failure response", ioEx);
}
}