public static Response build(int errorCode, String msg) {
        ErrorResponse response = new ErrorResponse();
        response.setErrorInfo(errorCode, msg);
        return response;
    }
@Test
    void testBuildWithErrorCode() {
        int errorCode = 500;
        String msg = "err msg";
        
        Response response = ErrorResponse.build(errorCode, msg);
        
        assertEquals(errorCode, response.getErrorCode());
        assertEquals(errorCode, response.getResultCode());
        assertEquals(msg, response.getMessage());
    }