관리-도구
편집 파일: web_exceptions.cpython-311.pyc
� �܋fx( � �� � d dl Z d dlmZmZmZmZmZmZ d dlm Z ddl mZmZ ddl mZ dZ G d� d e� � Z G d � dee� � Z G d� d e� � Z G d� de� � Z G d� de� � Z G d� de� � Z G d� de� � Z G d� de� � Z G d� de� � Z G d� de� � Z G d� de� � Z G d� de� � Z G d � d!e� � Z G d"� d#e� � Z G d$� d%e� � Z G d&� d'e� � Z! G d(� d)e� � Z" G d*� d+e� � Z# G d,� d-e� � Z$ G d.� d/e� � Z% G d0� d1e� � Z& G d2� d3e� � Z' G d4� d5e'� � Z( G d6� d7e'� � Z) G d8� d9e'� � Z* G d:� d;e'� � Z+ G d<� d=e'� � Z, G d>� d?e'� � Z- G d@� dAe'� � Z. G dB� dCe'� � Z/ G dD� dEe'� � Z0 G dF� dGe'� � Z1 G dH� dIe'� � Z2 G dJ� dKe'� � Z3 G dL� dMe'� � Z4 G dN� dOe'� � Z5 G dP� dQe'� � Z6 G dR� dSe'� � Z7 G dT� dUe'� � Z8 G dV� dWe'� � Z9 G dX� dYe'� � Z: G dZ� d[e'� � Z; G d\� d]e'� � Z< G d^� d_e'� � Z= G d`� dae'� � Z> G db� dce'� � Z? G dd� dee'� � Z@ G df� dge'� � ZA G dh� die� � ZB G dj� dkeB� � ZC G dl� dmeB� � ZD G dn� doeB� � ZE G dp� dqeB� � ZF G dr� dseB� � ZG G dt� dueB� � ZH G dv� dweB� � ZI G dx� dyeB� � ZJ G dz� d{eB� � ZK G d|� d}eB� � ZLdS )~� N)�Any�Dict�Iterable�List�Optional�Set)�URL� )�LooseHeaders�StrOrURL)�Response):� HTTPException� HTTPError�HTTPRedirection�HTTPSuccessful�HTTPOk�HTTPCreated�HTTPAccepted�HTTPNonAuthoritativeInformation� HTTPNoContent�HTTPResetContent�HTTPPartialContent�HTTPMove�HTTPMultipleChoices�HTTPMovedPermanently� HTTPFound�HTTPSeeOther�HTTPNotModified�HTTPUseProxy�HTTPTemporaryRedirect�HTTPPermanentRedirect�HTTPClientError�HTTPBadRequest�HTTPUnauthorized�HTTPPaymentRequired� HTTPForbidden�HTTPNotFound�HTTPMethodNotAllowed�HTTPNotAcceptable�HTTPProxyAuthenticationRequired�HTTPRequestTimeout�HTTPConflict�HTTPGone�HTTPLengthRequired�HTTPPreconditionFailed�HTTPRequestEntityTooLarge�HTTPRequestURITooLong�HTTPUnsupportedMediaType�HTTPRequestRangeNotSatisfiable�HTTPExpectationFailed�HTTPMisdirectedRequest�HTTPUnprocessableEntity�HTTPFailedDependency�HTTPUpgradeRequired�HTTPPreconditionRequired�HTTPTooManyRequests�HTTPRequestHeaderFieldsTooLarge�HTTPUnavailableForLegalReasons�HTTPServerError�HTTPInternalServerError�HTTPNotImplemented�HTTPBadGateway�HTTPServiceUnavailable�HTTPGatewayTimeout�HTTPVersionNotSupported�HTTPVariantAlsoNegotiates�HTTPInsufficientStorage�HTTPNotExtended�!HTTPNetworkAuthenticationRequiredc � � e Zd ZdZdS )�NotAppKeyWarningz-Warning when not using AppKey in Application.N��__name__� __module__�__qualname__�__doc__� � �M/opt/cloudlinux/venv/lib64/python3.11/site-packages/aiohttp/web_exceptions.pyrI rI G s � � � � � �7�7�7�7rP rI c � � e Zd ZdZdZdZdddddd�dee dee de d ee d ee ddfd�Z defd �ZdS )r ���FTN��headers�reason�body�text�content_typerU rV rW rX rY �returnc � � |�t j dt � � t j | | j |||||�� � t � | | j � � | j �| j s| j � d| j � �| _ d S d S d S )Nz3body argument is deprecated for http web exceptions)�statusrU rV rW rX rY z: )�warnings�warn�DeprecationWarningr �__init__�status_code� ExceptionrV rW � empty_bodyr\ rX )�selfrU rV rW rX rY s rQ r` zHTTPException.__init__Z s� � � ���M�E�"� � � � ����#�����%� � � � � ���4���-�-�-��9��T�_���;�7�7�$�+�7�7�D�I�I�I� ���rP c � � dS )NTrO �rd s rQ �__bool__zHTTPException.__bool__u s � ��trP ) rK rL rM ra rc �__http_exception__r r �strr r` �boolrg rO rP rQ r r P s� � � � � � � �K��J��� +/� $��"�&*�8� 8� 8� �,�'�8� �� � 8� �8� �s�m� 8� �s�m�8� �8� 8� 8� 8�6�$� � � � � � rP r c � � e Zd ZdZdS )r zABase class for exceptions with status codes in the 400s and 500s.NrJ rO rP rQ r r y s � � � � � �K�K�K�KrP r c � � e Zd ZdZdS )r z8Base class for exceptions with status codes in the 300s.NrJ rO rP rQ r r } � � � � � � �B�B�B�BrP r c � � e Zd ZdZdS )r z8Base class for exceptions with status codes in the 200s.NrJ rO rP rQ r r � rm rP r c � � e Zd ZdZdS )r �� N�rK rL rM ra rO rP rQ r r � � � � � � � ��K�K�KrP r c � � e Zd ZdZdS )r �� Nrq rO rP rQ r r � rr rP r c � � e Zd ZdZdS )r �� Nrq rO rP rQ r r � rr rP r c � � e Zd ZdZdS )r �� Nrq rO rP rQ r r � rr rP r c � � e Zd ZdZdZdS )r �� TN�rK rL rM ra rc rO rP rQ r r � � � � � � � ��K��J�J�JrP r c � � e Zd ZdZdZdS )r �� TNr{ rO rP rQ r r � r| rP r c � � e Zd ZdZdS )r �� Nrq rO rP rQ r r � rr rP r c �z � � e Zd Zdddddd�dedee dee dedee dee d df� fd �Z� xZ S )r NrT �locationrU rV rW rX rY rZ c �� �� |st d� � �t � � � |||||�� � t t |� � � � | j d<