fix(cliproxy): address code review feedback (attempt 3/5)

- Allow partial composite updates in PUT endpoint (|| -> &&)
- Map service validation errors to 400 status, not 404
- Widen 4xx regex to cover full 400-499 range
This commit is contained in:
Tam Nhu Tran
2026-02-12 08:39:46 +07:00
parent 240dfe29cf
commit 6cfbdd649b
2 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -102,7 +102,7 @@ export async function handleQuotaCheck(provider: CLIProxyProvider): Promise<void
/** Error patterns indicating provider failure */
export const PROVIDER_ERROR_PATTERNS = [
/Error:\s*4[012][0-9]/i,
/Error:\s*4[0-9]{2}/i,
/Error:\s*5[0-9]{2}/i,
/overloaded/i,
/quota.*exceeded/i,