File: //opt/alt/python37/lib64/python3.7/site-packages/aiohttp/__pycache__/web_exceptions.cpython-37.pyc
B
����� Yk� @ s� d dl Z d dlmZmZmZmZmZmZ d dlm Z ddl
mZmZ ddl
mZ dZG dd � d ee�ZG d
d� de�ZG dd
� d
e�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG d d!� d!e�ZG d"d#� d#e�ZG d$d%� d%e�ZG d&d'� d'e�Z G d(d)� d)e�Z!G d*d+� d+e�Z"G d,d-� d-e�Z#G d.d/� d/e�Z$G d0d1� d1e�Z%G d2d3� d3e%�Z&G d4d5� d5e%�Z'G d6d7� d7e%�Z(G d8d9� d9e%�Z)G d:d;� d;e%�Z*G d<d=� d=e%�Z+G d>d?� d?e%�Z,G d@dA� dAe%�Z-G dBdC� dCe%�Z.G dDdE� dEe%�Z/G dFdG� dGe%�Z0G dHdI� dIe%�Z1G dJdK� dKe%�Z2G dLdM� dMe%�Z3G dNdO� dOe%�Z4G dPdQ� dQe%�Z5G dRdS� dSe%�Z6G dTdU� dUe%�Z7G dVdW� dWe%�Z8G dXdY� dYe%�Z9G dZd[� d[e%�Z:G d\d]� d]e%�Z;G d^d_� d_e%�Z<G d`da� dae%�Z=G dbdc� dce%�Z>G ddde� dee%�Z?G dfdg� dge�Z@G dhdi� die@�ZAG djdk� dke@�ZBG dldm� dme@�ZCG dndo� doe@�ZDG dpdq� dqe@�ZEG drds� dse@�ZFG dtdu� due@�ZGG dvdw� dwe@�ZHG dxdy� dye@�ZIG dzd{� d{e@�ZJdS )|� N)�Any�Dict�Iterable�List�Optional�Set)�URL� )�LooseHeaders�StrOrURL)�Response)9�
HTTPException� HTTPError�HTTPRedirection�HTTPSuccessful�HTTPOk�HTTPCreated�HTTPAccepted�HTTPNonAuthoritativeInformation�
HTTPNoContent�HTTPResetContent�HTTPPartialContent�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 @ s\ e Zd ZdZdZdZdddddd�ee ee e ee ee dd�dd�Z
ed �d
d�ZdS )r
���FTN)�headers�reason�body�text�content_type)rG rH rI rJ rK �returnc C sd |d k rt �dt� tj| | j|||||d� t�| | j� | jd kr`| j s`| j
� d| j� �| _d S )Nz3body argument is deprecated for http web exceptions)�statusrG rH rI rJ rK z: )�warnings�warn�DeprecationWarningr �__init__�status_code� ExceptionrH rI �
empty_bodyrM rJ )�selfrG rH rI rJ rK � rV �I/opt/alt/python37/lib64/python3.7/site-packages/aiohttp/web_exceptions.pyrQ U s zHTTPException.__init__)rL c C s dS )NTrV )rU rV rV rW �__bool__p s zHTTPException.__bool__)
�__name__�
__module__�__qualname__rR rT Z__http_exception__r r
�strr rQ �boolrX rV rV rV rW r
K s r
c @ s e Zd ZdZdS )r zABase class for exceptions with status codes in the 400s and 500s.N)rY rZ r[ �__doc__rV rV rV rW r t s r c @ s e Zd ZdZdS )r z8Base class for exceptions with status codes in the 300s.N)rY rZ r[ r^ rV rV rV rW r x s r c @ s e Zd ZdZdS )r z8Base class for exceptions with status codes in the 200s.N)rY rZ r[ r^ rV rV rV rW r | s r c @ s e Zd ZdZdS )r �� N)rY rZ r[ rR rV rV rV rW r � s r c @ s e Zd ZdZdS )r �� N)rY rZ r[ rR rV rV rV rW r � s r c @ s e Zd ZdZdS )r �� N)rY rZ r[ rR rV rV rV rW r � s r c @ s e Zd ZdZdS )r �� N)rY rZ r[ rR rV rV rV rW r � s r c @ s e Zd ZdZdZdS )r �� TN)rY rZ r[ rR rT rV rV rV rW r � s r c @ s e Zd ZdZdZdS )r �� TN)rY rZ r[ rR rT rV rV rV rW r � s r c @ s e Zd ZdZdS )r �� N)rY rZ r[ rR rV rV rV rW r � s r c sL e Zd Zdddddd�eee ee eee ee dd�� fdd�Z� Z S )� _HTTPMoveN)rG rH rI rJ rK )�locationrG rH rI rJ rK rL c s>