Project

General

Profile

Actions

Issue #807

closed
RA

Requirement #801: JCIC Mock Server:建立可驗證的專業測試基準

問題:非法 ID 與未知路由缺少一致錯誤格式

Issue #807: 問題:非法 ID 與未知路由缺少一致錯誤格式

Added by Redmine Admin 6 days ago.

Status:
Closed
Priority:
P1-High
Assignee:
-
Category:
Validation
Start date:
10/19/2026
Due date:
10/19/2026
% Done:

100%

Estimated time:
Story Points:

Description

現象

原本未驗證身分證字號格式,且未知路由會落回 Express 預設 HTML。

影響

呼叫端無法用固定 REPLY_CODE 判斷錯誤,JSON/XML 客戶端也可能收到 HTML。

處置

  • 加入 ID 格式與產品代碼驗證。
  • 未知路由與所有錯誤都走統一回應函式。
  • 錯誤依 Accept 回 JSON 或 XML。

驗證

  • 非法 ID、非法產品、未知路由、格式錯誤與 413 均有測試。

No data to display

Actions

Also available in: PDF Atom