Used as a container for an error reason supplied in a MaxRetryError.
| 214 | |
| 215 | |
| 216 | class ResponseError(HTTPError): |
| 217 | """Used as a container for an error reason supplied in a MaxRetryError.""" |
| 218 | |
| 219 | GENERIC_ERROR = "too many error responses" |
| 220 | SPECIFIC_ERROR = "too many {status_code} error responses" |
| 221 | |
| 222 | |
| 223 | class SecurityWarning(HTTPWarning): |