It would be propagated through the downloader middleware and ultimately handled by the spider/request errback, if any.

it would be better to return the actual response we got from the proxy but in order to do that we'd need to do more parsing (like parsing HTTP headers) so this is probably something that could be improved when we port the patch to a cleaner approach using a twisted protocol.