Skip to content

Commit 5f571d2

Browse files
committed
Add 422 error message for "Data source not ready" scenario in errors.py.
1 parent a4d586a commit 5f571d2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/utils/errors.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ async def handle_api_error(
3030
401: "Authentication error (401): Invalid API key or insufficient permissions",
3131
403: "Authorization error (403): You don't have permission to access this resource",
3232
404: "Not found error (404): The requested resource could not be found",
33+
422: "Data source not ready (422): The requested data source is being processed. Please try again later.",
3334
429: "Rate limit exceeded (429): Too many requests, please try again later",
3435
500: f"Server error (500): The CodeAlive service encountered an issue",
3536
502: "Bad gateway (502): The CodeAlive service is temporarily unavailable",

0 commit comments

Comments
 (0)