[v3.8.50] fix(errorConfig): add status 499 metadata mapping (fixes #8535) (#8640)

Validated in local merge-train T7 (ungrouped batch 2)
This commit is contained in:
Austin Liu
2026-08-06 18:36:09 +09:30
committed by GitHub
parent ea9f15db27
commit ae2f7be16f

View File

@@ -20,6 +20,11 @@ test("errorConfig exposes centralized client-facing status metadata", () => {
code: "payment_required",
});
assert.equal(DEFAULT_ERROR_MESSAGES[406], "Model not supported");
assert.deepEqual(ERROR_TYPES[499], {
type: "client_disconnected",
code: "client_disconnected",
});
assert.equal(DEFAULT_ERROR_MESSAGES[499], "Client disconnected");
assert.equal(getDefaultErrorMessage(999), "An error occurred");
assert.deepEqual(getErrorInfo(504), {
type: "server_error",