private boolean isRetriableError(int statusCode) {
        return DEFAULT_RETRIABLE_HTTP_CODES.contains(statusCode) || context.getConfig().getRetriableErrorCodes().contains(statusCode);
    }
Called when proxy received the response headers from the origin.
server/src/main/java/com/epam/aidial/core/server/controller/DeploymentPostController.java