public String getExtraMetadata() {
        CachedUpstreamEntry entry  = getCachedUpstreamEntry();
        return entry == null ? null : entry.extraMetadata();
    }
Fail current upstream due to error

@param status - response http status; typically, 5xx or 429
@param retryAfterSeconds - the amount of seconds after which upstream should be available
server/src/main/java/com/epam/aidial/core/server/upstream/UpstreamRoute.java