o
    i&                     @   sD   G d d de ZG dd deZG dd deZG dd deZdS )	c                   @   s   e Zd ZdZdS )UWSGIParseExceptionz1Base exception for uWSGI protocol parsing errors.N)__name__
__module____qualname____doc__ r   r   I/home/ubuntu/.local/lib/python3.10/site-packages/gunicorn/uwsgi/errors.pyr      s    r   c                   @   s"   e Zd ZdZdddZdd ZdS )	InvalidUWSGIHeaderz*Raised when the uWSGI header is malformed. c                 C      || _ d| _d S )Ni  )msgcode)selfr   r   r   r   __init__      
zInvalidUWSGIHeader.__init__c                 C   
   d| j  S )NzInvalid uWSGI header: %s)r   r   r   r   r   __str__      
zInvalidUWSGIHeader.__str__N)r	   r   r   r   r   r   r   r   r   r   r   r      s    
r   c                   @       e Zd ZdZdd Zdd ZdS )UnsupportedModifierz.Raised when modifier1 is not 0 (WSGI request).c                 C   r
   )Ni  )modifierr   )r   r   r   r   r   r      r   zUnsupportedModifier.__init__c                 C   r   )NzUnsupported uWSGI modifier1: %d)r   r   r   r   r   r   "   r   zUnsupportedModifier.__str__Nr   r   r   r   r   r          r   c                   @   r   )ForbiddenUWSGIRequestz/Raised when source IP is not in the allow list.c                 C   r
   )Ni  )hostr   )r   r   r   r   r   r   )   r   zForbiddenUWSGIRequest.__init__c                 C   r   )Nz!uWSGI request from %r not allowed)r   r   r   r   r   r   -   r   zForbiddenUWSGIRequest.__str__Nr   r   r   r   r   r   &   r   r   N)	Exceptionr   r   r   r   r   r   r   r   <module>   s   