GitHub

ResponseTooLargeError

API reference for ResponseTooLargeError.

The cause of the DecodeError of a body read past its limit.

Attributes

AttributeTypeDescription
max_bytes= max_bytes

Functions

__init__

__init__(max_bytes) -> None
ParameterTypeDescription
max_bytesint
def __init__(self, max_bytes: int) -> None:
    super().__init__(f"Response body exceeds {max_bytes} bytes")
    self.max_bytes = max_bytes