I\'ve created a custom middleware class to handle to handle refused http requests. The middleware is attached to a specific spider and the logs show its attached successfull