Commit ddf0ec2
committed
fix RenderingCreditBalanceTooLow error code handling
The client mapped the API error code "CreditBalanceTooLow" but the
server actually sends "RenderingCreditBalanceTooLow", so the error
fell through to a generic "400 Client Error: BAD REQUEST" message
instead of surfacing the server's message (which contains the
purchase/upgrade URL). Align the client with the server's error
code and pass the server message through unchanged.1 parent 70150ef commit ddf0ec2
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
103 | | - | |
| 102 | + | |
| 103 | + | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| |||
0 commit comments