Commit d534c03
authored
Raise error for 429 and other 4xx codes
The API can return a response.body that looks like:
```
"{\"error\": \"Limit of webhooks created exceeded. Please check your account limits and upgrade your plan.\"}"
```
With HTTP code `429`. The current code silently ignores errors like this.1 parent 18fb5b5 commit d534c03
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
371 | 371 | | |
372 | 372 | | |
373 | 373 | | |
| 374 | + | |
374 | 375 | | |
375 | 376 | | |
376 | | - | |
| 377 | + | |
377 | 378 | | |
378 | | - | |
| 379 | + | |
379 | 380 | | |
380 | 381 | | |
381 | 382 | | |
| |||
0 commit comments