mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-19 22:18:26 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user