PR 준비 최종 검토 중 문제코드 처리 대조표를 재검증하며 발견한 결함 2건. - ResultCodeResolver 가 5002(요청 과다)를 재시도 대상으로 분류하지만 ko/en/ja 언어팩 어디에도 사유가 없어 코드값만 노출되던 결함 수정 - 알림톡 템플릿 연결 저장이 승인 상태(RDY/ACT) 재검증 없이 그대로 upsert되어, 화면 드롭다운(승인 템플릿만 노출)을 우회한 API 직접 호출 시 미승인 템플릿도 저장 가능했던 결함 수정 — bind 에 카카오 승인 목록 대조 추가, 조회 자체 실패 시에도 안전측으로 저장 거부
77 lines
3.0 KiB
PHP
77 lines
3.0 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Bizppurio result code → reason (English)
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Source: Bizppurio official response-code docs (https://bizppurio.github.io/response-codes/)
|
|
| As of: 2026-07-27 (aligned to the latest official docs; legacy manual wording corrected)
|
|
| Scope: common(2000~9071) + SMS(4100~4443) + LMS(6600~6641) + Alimtalk(7000~7523).
|
|
| RCS(8000s)/NaverTalkTalk(part of 5000s) are out of scope (follow-up D15).
|
|
|
|
|
*/
|
|
|
|
return [
|
|
// ── Common / send response ───────────────────────────
|
|
'1000' => 'Success',
|
|
'2000' => 'Message is invalid',
|
|
'3001' => 'Invalid authentication (Basic)',
|
|
'3002' => 'Invalid token (expired/revoked)',
|
|
'3003' => 'Invalid IP',
|
|
'3004' => 'Account is invalid',
|
|
'3005' => 'Invalid authentication (Bearer)',
|
|
'3006' => 'Account does not exist',
|
|
'3007' => 'Invalid account password',
|
|
'3009' => 'Account suspended',
|
|
'3010' => 'IP not in allowlist',
|
|
'3011' => 'Unknown error (Bizppurio)',
|
|
'3013' => 'Message not completed',
|
|
'5002' => 'Too many requests',
|
|
'5003' => 'Temporary delivery error',
|
|
'5004' => 'Temporary delivery error',
|
|
'5005' => 'Temporary delivery error',
|
|
'9000' => 'Temporary system error',
|
|
'9070' => 'Insufficient balance (SMS)',
|
|
'9071' => 'Postpaid limit exceeded',
|
|
|
|
// ── SMS report ───────────────────────────────────────
|
|
'4100' => 'Success',
|
|
'4400' => 'Out of service area',
|
|
'4401' => 'Power off',
|
|
'4402' => 'Storage full',
|
|
'4410' => 'Invalid number',
|
|
'4414' => 'Disconnected/suspended number',
|
|
'4420' => 'Other device error',
|
|
'4430' => 'Spam',
|
|
'4431' => 'Delivery-restricted opt-out (spam)',
|
|
'4443' => 'Spam blocked',
|
|
|
|
// ── LMS report ───────────────────────────────────────
|
|
'6600' => 'Success',
|
|
'6603' => 'Out of service area',
|
|
'6604' => 'Power off',
|
|
'6606' => 'Invalid number',
|
|
'6621' => 'Message length exceeded',
|
|
'6641' => 'Spam blocked',
|
|
|
|
// ── Alimtalk report ──────────────────────────────────
|
|
'7000' => 'Success',
|
|
'7103' => 'Invalid sender profile key',
|
|
'7106' => 'Deleted sender key',
|
|
'7107' => 'Blocked sender key',
|
|
'7204' => 'Message content does not match template',
|
|
'7206' => 'Serial number format mismatch',
|
|
'7306' => 'Kakao system error',
|
|
'7307' => 'Processing delayed',
|
|
'7308' => 'Phone number error',
|
|
'7320' => 'Receiver blocked',
|
|
'7325' => 'Variable length exceeded',
|
|
'7421' => 'Timeout',
|
|
'7436' => 'Insufficient wallet balance (Alimtalk)',
|
|
'7437' => 'Message request failed',
|
|
'7523' => '080 opt-out (spam)',
|
|
];
|