class ReadinessHttpCodeStatusMapper implements HttpCodeStatusMapper {

    private static final Map<String, Integer> DEFAULT_MAPPINGS;

    static {
        Map<String, Integer> defaultMappings = new HashMap<>(8);
        defaultMappings.put(Status.DOWN.getCode(), WebEndpointResponse.STATUS_SERVICE_UNAVAILABLE);
        defaultMappings.put(Status.OUT_OF_SERVICE.getCode(),
            WebEndpointResponse.STATUS_INTERNAL_SERVER_ERROR);
        defaultMappings.put(Status.UNKNOWN.getCode(),
            WebEndpointResponse.STATUS_INTERNAL_SERVER_ERROR);
        DEFAULT_MAPPINGS = getUniformMappings(defaultMappings);
    }

    private final SimpleHttpCodeStatusMapper  statusMapper;

    public ReadinessHttpCodeStatusMapper() {
        this(null);
    }

    public ReadinessHttpCodeStatusMapper(Map<String, Integer> mappings) {
        Map<String, Integer> mapping = new HashMap<>(8);

        // add custom status mapper
        mapping.putAll(DEFAULT_MAPPINGS);
        if (mappings != null) {
            mapping.putAll(getUniformMappings(mappings));
        }
        statusMapper = new SimpleHttpCodeStatusMapper(mapping);
    }

    @Override
    public int getStatusCode(Status status) {
        return statusMapper.getStatusCode(status);
    }

    private static Map<String, Integer> getUniformMappings(Map<String, Integer> mappings) {<FILL_FUNCTION_BODY>}

    private static String getUniformCode(String code) {
        if (code == null) {
            return null;
        }
        StringBuilder builder = new StringBuilder();
        for (int i = 0; i < code.length(); i++) {
            char ch = code.charAt(i);
            if (Character.isAlphabetic(ch) || Character.isDigit(ch)) {
                builder.append(Character.toLowerCase(ch));
            }
        }
        return builder.toString();
    }
}

        Map<String, Integer> result = new LinkedHashMap<>();
        for (Map.Entry<String, Integer> entry : mappings.entrySet()) {
            String code = getUniformCode(entry.getKey());
            if (code != null) {
                result.putIfAbsent(code, entry.getValue());
            }
        }
        return Collections.unmodifiableMap(result);
    
<no_super_class>