Commit c889b1b
committed
scrape: proxified_response error restoration from X-Scrapfly-Reject-* headers
When proxified_response=true and the upstream fails, the Go API sets
X-Scrapfly-Reject-Code/Description/Retryable + Retry-After headers
on the response. The SDK now reads these and raises HttpError with
the correct code, http_status_code, is_retryable, and retry_delay
instead of returning a raw Response that the caller would have to
interpret manually.1 parent bb8ca09 commit c889b1b
1 file changed
Lines changed: 23 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
495 | 495 | | |
496 | 496 | | |
497 | 497 | | |
498 | | - | |
499 | | - | |
500 | | - | |
501 | | - | |
502 | | - | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
503 | 521 | | |
504 | 522 | | |
505 | 523 | | |
| |||
0 commit comments