package com.banesco.commons.utils;

import com.banesco.common.domain.dto.bian.response.BianStatusResponse;
import com.banesco.commons.config.StatusCodes;


public class ResponseUtil {

    public static BianStatusResponse mapErrorResponse(String requestId, StatusCodes statusCodes) {
        return new BianStatusResponse("error", statusCodes.getStatusCode(), statusCodes.getStatusDesc(), requestId);
    }

}
