test url: https://amzn.eu/d/hdFr7Ue
error: "https://www.amazon.co.uk/dp/B0CHN77WSN?ref_=cm_sw_r_apan_dp_HWW1YYCS0W4EYFMKFPEY&language=en-GB returned HTTP 503"
I'm running on cloud compute and amazon do not allow crawling from these IP, as you can see the "error" url contains the ASIN so it could have been extracted.
you can either test the regex on the url before throwing the error, or test the regex before even looking at the response code