Commit 05220bc
authored
fix: AsyncAnthropic._make_status_error missing 529 and 413 cases (#1244)
PR #854 added the 529 -> OverloadedError and 413 -> RequestTooLargeError
checks to the sync Anthropic client's _make_status_error, but the
duplicate copy in AsyncAnthropic was missed. As a result, async users
get InternalServerError for 529 (since 529 >= 500) and the base
APIStatusError for 413, instead of the specific exception types.
Also adds a parametrized parity test to guard against the two copies
drifting again.1 parent be3dd14 commit 05220bc
1 file changed
+16
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
115 | 131 | | |
116 | 132 | | |
117 | 133 | | |
| |||
0 commit comments