Custom class for urllib3 MaxRetryError