Scrapy: Antworten mit bestimmten HTTP-Servercodes abfangen

Wir haben ein Standardprojekt für Scrapy (Scrapy 0.24).

Ich möchte bestimmte HTTP-Antwortcodes abfangen, z. B. 200, 500, 502, 503, 504 usw.

Sowas in der Art

class Spider(...):

    def parse(...):
        processes HTTP 200

    def parse_500(...):
        processes HTTP 500 errors

    def parse_502(...):
        processes HTTP 502 errors

    ...

Wie können wir das machen

Antworten auf die Frage(2)

Ihre Antwort auf die Frage