wce &dZddlmZddlmZmZddlmZdZGdde Z Gd d e Z Gd d e Z Gd de Z Gdde ZGdde ZGdde ZGdde ZGdde ZGdde ZGdde Zy)z"Low-level http related exceptions.)indent)OptionalUnion) _CIMultiDict)HttpProcessingErrorc beZdZdZdZdZdZdddddeede dee d dfd Z d e fd Z d e fd Z y) rzHTTP error. Shortcut for raising HTTP errors with custom code, message and headers. code: HTTP Error code. message: (optional) Error message. headers: (optional) Headers to be sent in response, a list of pairs rN)codemessageheadersr r r returnc2|||_||_||_y)N)r r r )selfr r r s 9/usr/lib/python3/dist-packages/aiohttp/http_exceptions.py__init__zHttpProcessingError.__init__s  DI  cPt|jd}|jd|S)Nz z , message: )rr r )rmsgs r__str__zHttpProcessingError.__str__&s'T\\4())L..rcjd|jjd|jd|jdS)N) __class____name__r r )rs r__repr__zHttpProcessingError.__repr__*s24>>**+2dii[ 4<s'rr0ceZdZdZy)ContentEncodingErrorzContent encoding error.Nr1r"rrr3r3Bs!rr3ceZdZdZy)TransferEncodingErrorztransfer encoding error.Nr1r"rrr5r5Fs"rr5ceZdZdZy)ContentLengthErrorz2Not enough data for satisfy content length header.Nr1r"rrr7r7JsA/ //rr9c2eZdZdeeefddffd ZxZS) InvalidHeaderhdrrNct|tr|jdn|}t|d|||_|f|_y)Nbackslashreplace)errorszInvalid HTTP header: ) isinstancebytesdecoder)rrBr*)rrBhdr_srs rrzInvalidHeader.__init__YsE9CC9O "4 5UX 089F r)rrrrrGr!rr+r,s@rrArAXs$E%*-$rrAc4eZdZddedeeddffd ZxZS) BadStatusLineNr:errorrct|ts t|}t||xsd||f|_||_y)NzBad status line )rFr!reprr)rr*r:)rr:rLrs rrzBadStatusLine.__init__as@$$:D =$4TH"=>G  r)r N)rrrr!rrr+r,s@rrKrK`s&ShsmtrrKc eZdZy)InvalidURLErrorN)rrrr"rrrPrPisrrPN)rtextwraprtypingrrtypedefsr__all__ Exceptionrr$r.r0r3r5r7r9rArKrPr"rrrVs("" "U)UD(^ (>("/"#0#=-=/./NN n r