Source code for edri.api.headerkit.errors

__all__ = ["HeaderError", "InvalidHeader", "DuplicateHeader", "HeaderTooLarge", "ParseError"]


[docs] class HeaderError(ValueError): """Base class for header parsing/access errors."""
[docs] class InvalidHeader(HeaderError): """Header name or value is syntactically invalid at the generic HTTP layer."""
[docs] class DuplicateHeader(HeaderError): """A header was repeated where the selected policy requires a singleton."""
[docs] class HeaderTooLarge(HeaderError): """The configured aggregate header-size limit was exceeded."""
[docs] class ParseError(HeaderError): """A semantically known header failed to parse."""