
    AҐi&                     \     G d  de       Z G d de      Z G d de      Z G d de      Zy)	c                       e Zd ZdZy)UWSGIParseExceptionz1Base exception for uWSGI protocol parsing errors.N)__name__
__module____qualname____doc__     N/var/www/descvideos/venv/lib/python3.12/site-packages/gunicorn/uwsgi/errors.pyr   r      s    ;r	   r   c                       e Zd ZdZddZd Zy)InvalidUWSGIHeaderz*Raised when the uWSGI header is malformed.c                      || _         d| _        y )Ni  )msgcode)selfr   s     r
   __init__zInvalidUWSGIHeader.__init__   s    	r	   c                      d| j                   z  S )NzInvalid uWSGI header: %s)r   r   s    r
   __str__zInvalidUWSGIHeader.__str__   s    )DHH44r	   N) r   r   r   r   r   r   r   r	   r
   r   r      s    45r	   r   c                       e Zd ZdZd Zd Zy)UnsupportedModifierz.Raised when modifier1 is not 0 (WSGI request).c                      || _         d| _        y )Ni  )modifierr   )r   r   s     r
   r   zUnsupportedModifier.__init__   s     	r	   c                      d| j                   z  S )NzUnsupported uWSGI modifier1: %d)r   r   s    r
   r   zUnsupportedModifier.__str__"   s    04==@@r	   Nr   r   r	   r
   r   r      s    8Ar	   r   c                       e Zd ZdZd Zd Zy)ForbiddenUWSGIRequestz/Raised when source IP is not in the allow list.c                      || _         d| _        y )Ni  )hostr   )r   r   s     r
   r   zForbiddenUWSGIRequest.__init__)   s    		r	   c                      d| j                   z  S )Nz!uWSGI request from %r not allowed)r   r   s    r
   r   zForbiddenUWSGIRequest.__str__-   s    2TYY>>r	   Nr   r   r	   r
   r   r   &   s    9?r	   r   N)	Exceptionr   r   r   r   r   r	   r
   <module>r"      s:   <) <5, 5A- A?/ ?r	   