export const Errors = { UNKNOWN : "unknown error", UNREACHABLE: { release: "${open_cause}", debug : "${open_cause} - ${hidden_cause}", }, // ========================================================== // // ========================================================== AXIOS: "axios error with", WSOCK: "websocket error with ${ message }", HCODE: "unexpected http code ${ hcode:number }", // ========================================================== // A - // ========================================================== A0001: { release: "invalid id or pw", debug : "invalid id or pw", }, A0002: { release: "already logout", debug : "already logout for user ${userid}", }, A0003: { release: "questionable approach", debug : "questionable approach, ${detail}", }, A0004: "unknown id ${unknownId}", A0005: "user id is undefined", A0006: "${tokenType:string} token not usable for refresh", A0007: "no token", A0008: "unexpected token ${actualTokenType}, not ${expectTokenType}", A0009: "refresh failed", A0010: "unauthorized", A0011: "sellOrderId is undefined", A0012: "kaptCd is undefined", A0013: "rltr Offc id is undefined", A0014: "temporary userRole need new password", A0015: "already register user email(${email}), phoneNumber(${phoneNumber})", A0016: "broker is owner", A0017: "input data userId need", A0018: "broker id is undefined", A0019: "login authentication time expired", A0020: "admin only", A0031: "login possible date is ${loginPossibleAt}", // ========================================================== // B - // ========================================================== B0001: "service key is wrong", B0002: "service provider internal error", // ========================================================== // C - // ========================================================== // 채팅을 하려면 로그인 해야 합니다.. C0000: "chatroom require login", // 존재하지 않는 채팅방입니다. C0001: "not exist chatroom id = ${chatroom_id}", CMT01: "not exist comment id '${commentId}", C0002: "no system room for user, ${userId}", // ========================================================== // D - // ========================================================== // Sell ID에 해당하는 Deal이 존재하지 않음 D0001: "no deal for sell id '${ sell_id }'", // Buy ID에 해당하는 Deal이 존재하지 않음 D0002: "no deal for buy id '${ buy_id }'", // Deal ID에 해당하는 Deal이 존재하지 않음 D0003: "no deal for deal id '${ deal_id }'", // 해당 요청에 대한 권한(거래당사자가 아님)이 없음 D0004: "not available authority", // 현재 매물에 이 행위가 불가능한 상태 D0005: "unexpected deal state", // 선택 실패 D0006: "select failed, cause ${ cause }", // 선택되지 않은 매물입니다. D0007: "not selected", // 계약서가 없습니다. D0008: "no contract for Deal(sell:${ sell_id }, buy:${ buy_id })", // 이미 사인된 계약서가 있습니다.. D0009: "already signed contract for Deal(sell:${ sell_id }, buy:${ buy_id })", // 증거금이 납부되지 않았습니다. D0010: "DealOrder(sell : ${sellOrderId}, buy: ${buyOrderId}) not margin process complete", // 증거금이 납부되지 않았습니다. D0011: "There is already selected DealOrder(sell : ${selectedSellOrderID}, buy : ${selectedBuyOrderID}), but want DealOrder(sell : ${wantSellOrderID}, buy : ${wantBuyOrderID})", // Deal ID에 해당하는 Deal이 존재하지 않음 D0012: "no deal for dealId = ${deal_id}", // 관련없는 인물의 결제 기록 D0013: "not related user payed", // contractId 가 존재하지 않음 D0014: "contract id(${contractId})not exist ", // ad 권한 없음 D0015: "unauthorized ad", // 이미 취소가 되었습니다. D0016: "already cancel deal (dealId: ${dealId})", // 매매대금과 계약금+중도금+잔금의 합이 다를경우 D0017: "salePrice not equal ctrctPrice + intrmPrice + balncPrice", // 이미 납부한경우 D0018: "aleady payed", // 계약서에 있는 금액과 입금액이 다른경우 D0019: "not match payed", DS000: "불가능한 동작, 원 상태 ${originState} 에서 ${event}는 불가능합니다.", // ========================================================== // F - // ========================================================== FAQ01: "not exist FAQ ID '${faqId}'", // ========================================================== // H - // ========================================================== // BAD PARAMETERS H0000: "parameter failed '${key:string}' cause '${cause:string}'", H0001: "querystring failed '${key:string}' cause '${cause:string}'", H0002: "body failed '${key:string}' cause '${cause:string}'", // ========================================================== // M - MAPPER // ========================================================== M0001: "not exist mapper id (${mapper_id})", M0002: "invalid mapper id (${mapper_id})", M0003: "data not found", // ========================================================== // N - // ========================================================== NOT01: "not exist Notice ID '${noticeId}'", // 아직 구현되지 않은 기능입니다. NOT02: "not implemented function", // ========================================================== // p - // ========================================================== // 매도 주문이 없는 경우 P0000: "not exist sell id = ${sellId}", // 매도주문을 낼 수 없을 때 P0001: "unregisterable product ${ cause }", // 존재하지 않는 매도주문 ID로 거래를 요청할 때 P0002: "unregistered sell ${ sell_id:number }", // 매수주문의 월/전/매매 하고 매도주문의 월/전/매매 가 다를 때(거래 종류가 다를때, ex. 전세 매물을 월세 매물로 매수 신청) P0003: "incompatible price type of product is '${product_ptype}' , but price type of order is ${order_ptype}", // 존재하지 않는 주소에 매물 등록 P0004: "not exist address ${address}", // 등록 불가능한 주소에 매물 등록, 원인은 레벨의 불일치 P0005: "not usable address ${address}, cause lv is ${lv}", // 이미 팔린 매물입니다. P0006: "already sold out sell order", // 매수 주문이 없습니다. P0007: "BuyOrder(${buyOrderId}) not exist", // 존재하지 않는 매수주문 ID로 거래를 요청할 때 P0008: "unregistered buy ${ buy_id:number }", // 자기 자신의 매도주문에 매수를 넣었을 경우 P0009: "same seller and buyer", // product id가 존재하지 않는 경우 P0010: "unregistered product id ${ prod_id:number }", // 매물과 중개사가 이미 매칭이 된경우 P0011: "already match product to seller", // 중개사 권한이 필요한경우 P0012: "only broker can process", // 중개사 권한이 필요한경우 P0013: "this product is not yours", // 광고기간이 남았는데 신규로 넣을경우 에러 P0014: "ad is already in progress.", // 계약된 광고가 없습니다. P0015: "There are no contracted ad.", // 처리일자가 0보다 커야합니다. P0016: "ad day must be greater than 0.", // 처리일자가 0보다 작아야합니다. P0017: "ad day must be less than 0.", // ========================================================== // Q - // ========================================================== QNA01: "not exist QNA ID '${qnaId}'", QNA02: "already Adopted QNA", // ========================================================== // S - // ========================================================== // 존재하지 않는 주소를 검색할 때 S0001: "not exist address id(${id})", // ========================================================== // T - // ========================================================== // 만약 payment ID가 존재하지 않는 경우 T0001: "no payment id ${payment_id}", // 만약 payment ID의 소유주가 아닌 경우 T0002: "this payment not own to you", // ========================================================== // U - // ========================================================== U0000: "no file", U0001: "user profile image not supported mime '${mime}'", U0002: "the userName for this phoneNumber is incorrect.", // ========================================================== // X - 보안적인 위협으로 인식되는 에러 // ========================================================== X0001: { release: "serious security vulnerability is expected, communicated to the administrator. `${id}`", debug: "unknown issue", }, X0002: { release: "admin only allow ${method}, unauthorized user approach", debug : "unknown issue", }, } as const;