public static void storeStatusCategoryIfNotAlreadyFailure(SessionContext context, StatusCategory statusCategory) {
        if (statusCategory != null) {
            StatusCategory nfs = getStatusCategory(context);
            if (nfs == null || nfs.getGroup().getId() == ZuulStatusCategoryGroup.SUCCESS.getId()) {
                setStatusCategory(context, statusCategory);
            }
        }
    }
User: michaels@netflix.com
Date: 6/9/15
Time: 2:48 PM
zuul-core/src/main/java/com/netflix/zuul/stats/status/StatusCategoryUtils.java