private void handleError(Throwable error) {
        String route = context.getRoute().getName();
        log.error("Failed to handle route {}", route, error);
        respond(HttpStatus.INTERNAL_SERVER_ERROR, "Failed to process route request: " + route);
    }
Called when proxy sent response from the origin to the client.
server/src/main/java/com/epam/aidial/core/server/controller/RouteController.java