Change error HTTP status code from 503 to 429 when notifyerrors is false

parent 4e2f7315
......@@ -962,7 +962,7 @@ class RotationHandler:
return error_response
else:
raise HTTPException(
status_code=503,
status_code=429,
detail={
"message": "No models available in rotation (all providers may be rate limited)",
"rotation_id": rotation_id,
......@@ -1355,7 +1355,7 @@ class RotationHandler:
return error_response
else:
raise HTTPException(
status_code=503,
status_code=429,
detail={
"message": f"All providers in rotation failed after {max_retries} attempts",
"rotation_id": rotation_id,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment