bg jdZddlmZddlmZmZddlmZdZGdde Z Gd d e Z Gd d e Z Gd de Z Gdde ZGdde ZGdde ZGdde ZGdde ZGdde ZGdde ZdS)z"Low-level http related exceptions.)indent)OptionalUnion) _CIMultiDict)HttpProcessingErrorc peZdZdZdZdZdZdddddeede dee d dfd Z d e fd Z d e fd Z dS) 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 returnc4|||_||_||_dS)N)r r r )selfr r r s N/opt/cloudlinux/venv/lib64/python3.11/site-packages/aiohttp/http_exceptions.py__init__zHttpProcessingError.__init__s#  DI  cDt|jd}|jd|S)Nz z , message: )rr r )rmsgs r__str__zHttpProcessingError.__str__&s)T\4(().....rcBd|jjd|jd|jdS)N) __class____name__r r )rs r__repr__zHttpProcessingError.__repr__*s,T4>*TTdiTT4<TTTTr)r __module__ __qualname____doc__r r r rintstrrrrrrrrr s DGG #*.   sm   ,'      /////U#UUUUUUrrcFeZdZdZdZdddedeeddffdZxZ S) BadHttpMessage Bad RequestN)r r r rc^t|||f|_dS)N)r r superrargs)rr r rs rrzBadHttpMessage.__init__3s- ':::J r) rrrr r r!rrr __classcell__rs@rr$r$.so DGJN,1GSWrr$ceZdZdZdZdS)HttpBadRequestr%r&N)rrrr r r"rrr.r.8s DGGGrr.ceZdZdZdS)PayloadEncodingErrorzBase class for payload errorsNrrrrr"rrr0r0>s''''rr0ceZdZdZdS)ContentEncodingErrorzContent encoding error.Nr1r"rrr3r3Bs!!!!rr3ceZdZdZdS)TransferEncodingErrorztransfer encoding error.Nr1r"rrr5r5Fs""""rr5ceZdZdZdS)ContentLengthErrorz2Not enough data for satisfy content length header.Nr1r"rrr7r7Js<<<A/ //////////rr9c8eZdZdeeefddffd ZxZS) InvalidHeaderhdrrNct|tr|dn|}td|||_|f|_dS)Nbackslashreplace)errorszInvalid HTTP header: ) isinstancebytesdecoder)rrBr*)rrBhdr_srs rrzInvalidHeader.__init__Ysa9CC9O9OX "4 555UX 888999F r)rrrrrGr!rr+r,s@rrArAXsTE%*-$rrAc:eZdZddedeeddffd ZxZS) BadStatusLiner Nr;errorrct|tst|}t|pd||f|_||_dS)NzBad status line )rFr!reprr)rr*r;)rr;rLrs rrzBadStatusLine.__init__asZ$$$ ::D ="=T"="=>>>G  r)r N)rrrr!rrr+r,s@rrKrK`s[ShsmtrrKceZdZdS)InvalidURLErrorN)rrrr"rrrPrPisDrrPN)rtextwraprtypingrrtypedefsr__all__ Exceptionrr$r.r0r3r5r7r9rArKrPr"rrrVs3(("""""""""""""" "UUUUU)UUUD(^ (((((>((("""""/"""#####0###=====-===/////.///NN     n     r