Commit 047095f
committed
Add HTTP status check before parsing token responses
- Prevents misleading 'Missing access_token parameter' errors when
server returns HTTP errors.
- Properly raises HTTPError with the actual error message received
from the server for 4xx/5xx responses.1 parent f33dac3 commit 047095f
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
403 | 403 | | |
404 | 404 | | |
405 | 405 | | |
| 406 | + | |
| 407 | + | |
406 | 408 | | |
407 | 409 | | |
408 | 410 | | |
| |||
493 | 495 | | |
494 | 496 | | |
495 | 497 | | |
| 498 | + | |
| 499 | + | |
496 | 500 | | |
497 | 501 | | |
498 | 502 | | |
| |||
0 commit comments