fix(providers): update securityBlocked check to use 503 instead of 400

This commit is contained in:
Antigravity Assistant
2026-05-01 09:59:00 -03:00
parent a7df2b0b55
commit 4e79d4708c

View File

@@ -269,7 +269,7 @@ function toValidationErrorResult(error: unknown) {
...(error instanceof SafeOutboundFetchError && error.code === "TIMEOUT"
? { timeout: true }
: {}),
...(statusCode === 400 ? { securityBlocked: true } : {}),
...(statusCode === 503 ? { securityBlocked: true } : {}),
};
}