
    %hWg                    F   % S r SSKJr  SSKrSSKJr  SSKJr  SSKJr  SSK	J
r
  \R                  (       a$  SS	KJr  SS
KJr  SSKJr  SSKJr  SSKJr  SSKJr   " S S\5      r " S S\5      r " S S\\5      r " S S\5      r " S S\5      r " S S\5      r " S S\5      r  " S S\5      r! " S S\5      r" " S  S!\5      r# " S" S#\5      r$ " S$ S%\5      r% " S& S'\5      r& " S( S)\5      r' " S* S+\5      r( " S, S-\5      r) " S. S/\5      r* " S0 S1\5      r+ " S2 S3\5      r, " S4 S5\5      r- " S6 S7\5      r. " S8 S9\5      r/ " S: S;\5      r0 " S< S=\5      r1 " S> S?\5      r2 " S@ SA\5      r3 " SB SC\5      r4 " SD SE\5      r5 " SF SG\55      r6 " SH SI\5      r7 " SJ SK\5      r8 " SL SM\5      r9 " SN SO\5      r: " SP SQ\5      r; " SR SS\55      r< " ST SU\5      r= " SV SW\5      r>0 r?SX\@SY'   S_SZ jrA\A" 5         CA " S[ S\5      rBS`S] jrC\B" 5       rDS\\@S^'   g)aa  Implements a number of Python exceptions which can be raised from within
a view to trigger a standard HTTP non-200 response.

Usage Example
-------------

.. code-block:: python

    from werkzeug.wrappers.request import Request
    from werkzeug.exceptions import HTTPException, NotFound

    def view(request):
        raise NotFound()

    @Request.application
    def application(request):
        try:
            return view(request)
        except HTTPException as e:
            return e

As you can see from this example those exceptions are callable WSGI
applications. However, they are not Werkzeug response objects. You
can get a response object by calling ``get_response()`` on a HTTP
exception.

Keep in mind that you may have to pass an environ (WSGI) or scope
(ASGI) to ``get_response()`` because some errors fetch additional
information relating to the request.

If you want to hook in a different exception page to say, a 404 status
code, you can add a second except for a specific subclass of an error:

.. code-block:: python

    @Request.application
    def application(request):
        try:
            return view(request)
        except NotFound as e:
            return not_found(request)
        except HTTPException as e:
            return e

    )annotationsN)datetime)escape)Markup   )_get_environ)StartResponse)WSGIEnvironmentWWWAuthenticateResponse)Requestc                    ^  \ rS rSr% SrSrS\S'   SrS\S'     S     SU 4S jjjr\	SS	 j5       r
  S     SS
 jjr  S     SS jjr  S     SS jjr  S     SS jjr      SS jrSS jrSS jrSrU =r$ )HTTPExceptionC   a  The base class for all HTTP exceptions. This exception can be called as a WSGI
application to render a default error page or you can catch the subclasses
of it independently and render nicer error messages.

.. versionchanged:: 2.1
    Removed the ``wrap`` class method.
N
int | Nonecode
str | Nonedescriptionc                @   > [         TU ]  5         Ub  Xl        X l        g N)super__init__r   response)selfr   r   	__class__s      K/var/www/auris/envauris/lib/python3.13/site-packages/werkzeug/exceptions.pyr   HTTPException.__init__O   s!    
 	"*     c                F    SSK Jn  UR                  U R                  S5      $ )zThe status name.r   )HTTP_STATUS_CODESzUnknown Error)httpr"   getr   )r   r"   s     r   nameHTTPException.nameY   s     	, $$TYY@@r    c                    U R                   c  SnOU R                   n[        U5      R                  S[        S5      5      nSU S3$ )zGet the description. 
z<br>z<p>z</p>)r   r   replacer   )r   environscoper   s       r   get_descriptionHTTPException.get_description`   sJ     #K**K[)11$vG[M&&r    c           
         SU R                    S[        U R                  5       S[        U R                  5       SU R                  U5       S3	$ )zGet the HTML body.z&<!doctype html>
<html lang=en>
<title> z</title>
<h1>z</h1>
r)   )r   r   r%   r-   r   r+   r,   s      r   get_bodyHTTPException.get_bodyn   sS    ii[&"3!4 5$))$%W##G,-R	1	
r    c                    S/$ )zGet a list of headers.)zContent-Typeztext/html; charset=utf-8 r1   s      r   get_headersHTTPException.get_headers|   s     ===r    c                    SSK Jn  U R                  b  U R                  $ Ub  [        U5      nU R	                  X5      nU" U R                  X5      U R                  U5      $ )a8  Get a response object.  If one was passed to the exception
it's returned directly.

:param environ: the optional environ for the request.  This
                can be used to modify the response depending
                on how the request looked like.
:return: a :class:`Response` object or a subclass thereof.
r   r   )wrappers.responser   r   r   r6   r2   r   )r   r+   r,   WSGIResponseheaderss        r   get_responseHTTPException.get_response   sX     	@==$== "7+G""72DMM'9499gNNr    c                ^    [         R                  " SU R                  U5      5      nU" X5      $ )zCall the exception as WSGI application.

:param environ: the WSGI environment.
:param start_response: the response callable provided by the WSGI
                       server.
r:   )tcastr<   )r   r+   start_responser   s       r   __call__HTTPException.__call__   s*     66.$*;*;G*DE00r    c                t    U R                   b  U R                   OSnU SU R                   SU R                   3$ )N???r0   : )r   r%   r   r   r   s     r   __str__HTTPException.__str__   s8     II1tyyuq2d&6&6%788r    c                    U R                   b  U R                   OSnS[        U 5      R                   SU SU R                   S3$ )NrE   <z 'rF   z'>)r   type__name__r%   rG   s     r   __repr__HTTPException.__repr__   s@     II1tyyu4:&&'r$r$))B??r    r   r   NN)r   r   r   Response | NonereturnNonerS   str)r+   WSGIEnvironment | Noner,   dict[str, t.Any] | NonerS   rV   r+   rW   r,   rX   rS   zlist[tuple[str, str]])r+   z$WSGIEnvironment | WSGIRequest | Noner,   rX   rS   r   )r+   r
   rA   r	   rS   zt.Iterable[bytes])rM   
__module____qualname____firstlineno____doc__r   __annotations__r   r   propertyr%   r-   r2   r6   r<   rB   rH   rN   __static_attributes____classcell__r   s   @r   r   r   C   s8    D*"K" #'$(!! "! 
	! ! A A +/)-''' '' 
	'  +/)-
'
 '
 
	
  +/)->'> '> 
	> 9=)-O5O 'O 
	O,
1&
18E
1	
19@ @r    r   c                       \ rS rSrSrSrSrSrg)
BadRequest   zv*400* `Bad Request`

Raise if the browser sends something to the application the application
or server cannot handle.
i  zLThe browser (or proxy) sent a request that this server could not understand.r5   NrM   rZ   r[   r\   r]   r   r   r`   r5   r    r   rd   rd      s     D	 r    rd   c                     ^  \ rS rSrSr\R                  rSrSS	U 4S jjjr	\
S
S j5       r\R                  SS j5       rSrU =r$ )BadRequestKeyError   zxAn exception that is used to signal both a :exc:`KeyError` and a
:exc:`BadRequest`. Used by many of the datastructures.
Fc                   > [         TU ]  " U0 UD6  Uc  [        R                  U 5        g [        R                  X5        g r   )r   r   KeyError)r   argargskwargsr   s       r   r   BadRequestKeyError.__init__   s6    $)&);d#d(r    c                    U R                   (       a5  U R                   S[        R                   S[        R	                  U 5       3$ U R                  $ )Nr)   rF   )show_exception_descriptionrk   rM   rH   )r   s    r   r   BadRequestKeyError.description   sP    $$%R$$%R(8(8(>'?A
    r    c                    Xl         g r   rr   )r   values     r   r   rs      s    !r    ru   r   )rl   zobject | Nonerm   t.Anyrn   rw   rU   )rv   rV   rS   rT   )rM   rZ   r[   r\   r]   rd   r   rr   rq   r   r_   setterr`   ra   rb   s   @r   rh   rh      sT     ))L N) ) ! ! " "r    rh   c                      \ rS rSrSrSrg)ClientDisconnected   a  Internal exception that is raised if Werkzeug detects a disconnected
client.  Since the client is already gone at that point attempting to
send the error message to the client might not work and might ultimately
result in another exception in the server.  Mainly this is here so that
it is silenced by default as far as Werkzeug is concerned.

Since disconnections cannot be reliably detected and are unspecified
by WSGI to a large extent this might or might not be raised if a client
is gone.

.. versionadded:: 0.8
r5   NrM   rZ   r[   r\   r]   r`   r5   r    r   rz   rz      s    r    rz   c                      \ rS rSrSrSrg)SecurityError   z{Raised if something triggers a security error.  This is otherwise
exactly like a bad request error.

.. versionadded:: 0.9
r5   Nr|   r5   r    r   r~   r~      s    r    r~   c                      \ rS rSrSrSrg)BadHost   zKRaised if the submitted host is badly formatted.

.. versionadded:: 0.11.2
r5   Nr|   r5   r    r   r   r      s    r    r   c                  r   ^  \ rS rSrSrSrSr   S       S	U 4S jjjr  S
     SU 4S jjjrSr	U =r
$ )Unauthorized   a  *401* ``Unauthorized``

Raise if the user is not authorized to access a resource.

The ``www_authenticate`` argument should be used to set the
``WWW-Authenticate`` header. This is used for HTTP basic auth and
other schemes. Use :class:`~werkzeug.datastructures.WWWAuthenticate`
to create correctly formatted values. Strictly speaking a 401
response is invalid if it doesn't provide at least one value for
this header, although real clients typically don't care.

:param description: Override the default message used for the body
    of the response.
:param www-authenticate: A single value, or list of values, for the
    WWW-Authenticate header(s).

.. versionchanged:: 2.0
    Serialize multiple ``www_authenticate`` items into multiple
    ``WWW-Authenticate`` headers, rather than joining them
    into a single value, for better interoperability.

.. versionchanged:: 0.15.3
    If the ``www_authenticate`` argument is not set, the
    ``WWW-Authenticate`` header is not set.

.. versionchanged:: 0.15.3
    The ``response`` argument was restored.

.. versionchanged:: 0.15.1
    ``description`` was moved back as the first argument, restoring
     its previous position.

.. versionchanged:: 0.15.0
    ``www_authenticate`` was added as the first argument, ahead of
    ``description``.
i  zThe server could not verify that you are authorized to access the URL requested. You either supplied the wrong credentials (e.g. a bad password), or your browser doesn't understand how to supply the credentials required.c                b   > [         TU ]  X5        SSKJn  [	        X45      (       a  U4nX0l        g )Nr   r   )r   r   datastructuresr   
isinstancewww_authenticate)r   r   r   r   r   r   s        r   r   Unauthorized.__init__+  s0     	/3&88 02 0r    c                   > [         TU ]  X5      nU R                  (       a"  UR                  S U R                   5       5        U$ )Nc              3  <   #    U  H  nS [        U5      4v   M     g7f)zWWW-AuthenticateN)rV   ).0xs     r   	<genexpr>+Unauthorized.get_headers.<locals>.<genexpr>A  s     WAVA.A7AVs   )r   r6   r   extendr   r+   r,   r;   r   s       r   r6   Unauthorized.get_headers:  s:    
 '%g5  NNWAVAVWWr    )r   NNN)r   r   r   rR   r   z6None | (WWWAuthenticate | t.Iterable[WWWAuthenticate])rS   rT   rQ   rY   rM   rZ   r[   r\   r]   r   r   r   r6   r`   ra   rb   s   @r   r   r      s    #J D	3  #'$(SW	11 "1 Q	1
 
1 1" +/)-' ' 
	 r    r   c                       \ rS rSrSrSrSrSrg)	ForbiddeniE  zs*403* `Forbidden`

Raise if the user doesn't have the permission for the requested resource
but was authenticated.
i  zzYou don't have the permission to access the requested resource. It is either read-protected or not readable by the server.r5   Nrf   r5   r    r   r   r   E       D	 r    r   c                       \ rS rSrSrSrSrSrg)NotFoundiT  zI*404* `Not Found`

Raise if a resource does not exist and never existed.
i  zxThe requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.r5   Nrf   r5   r    r   r   r   T  s    
 D	F r    r   c                  r   ^  \ rS rSrSrSrSr   S       S	U 4S jjjr  S
     SU 4S jjjrSr	U =r
$ )MethodNotAllowedia  ay  *405* `Method Not Allowed`

Raise if the server used a method the resource does not handle.  For
example `POST` if the resource is view only.  Especially useful for REST.

The first argument for this exception should be a list of allowed methods.
Strictly speaking the response would be invalid if you don't provide valid
methods in the header which you can do with that list.
  z0The method is not allowed for the requested URL.c                ,   > [         TU ]  X#S9  Xl        g)zcTakes an optional list of valid http methods
starting with werkzeug 0.3 the list will be mandatory.rP   N)r   r   valid_methods)r   r   r   r   r   s       r   r   MethodNotAllowed.__init__o  s     	[D*r    c                   > [         TU ]  X5      nU R                  (       a,  UR                  SSR	                  U R                  5      45        U$ )NAllowz, )r   r6   r   appendjoinr   s       r   r6   MethodNotAllowed.get_headersz  sB    
 '%g5NNGTYYt/A/A%BCDr    )r   r   )r   zt.Iterable[str] | Noner   r   r   rR   rS   rT   rQ   rY   r   rb   s   @r   r   r   a  s}     DDK 15"&$(		+-	+  	+ "		+
 
	+ 	+ +/)-' ' 
	 r    r   c                       \ rS rSrSrSrSrSrg)NotAcceptablei  zw*406* `Not Acceptable`

Raise if the server can't return any content conforming to the
`Accept` headers of the client.
i  zThe resource identified by the request is only capable of generating response entities which have content characteristics not acceptable according to the accept headers sent in the request.r5   Nrf   r5   r    r   r   r     s     D	( r    r   c                       \ rS rSrSrSrSrSrg)RequestTimeoutr   z7*408* `Request Timeout`

Raise to signalize a timeout.
i  zqThe server closed the network connection because the browser didn't finish the request within the specified time.r5   Nrf   r5   r    r   r   r     s    
 D	@ r    r   c                       \ rS rSrSrSrSrSrg)Conflict  z*409* `Conflict`

Raise to signal that a request cannot be completed because it conflicts
with the current state on the server.

.. versionadded:: 0.7
i  z~A conflict happened while processing the request. The resource might have been modified while the request was being processed.r5   Nrf   r5   r    r   r   r     s     D	 r    r   c                       \ rS rSrSrSrSrSrg)Gonei  zY*410* `Gone`

Raise if a resource existed previously and went away without new location.
i  zThe requested URL is no longer available on this server and there is no forwarding address. If you followed a link from a foreign page, please contact the author of this page.r5   Nrf   r5   r    r   r   r     s    
 D	A r    r   c                       \ rS rSrSrSrSrSrg)LengthRequiredi  z*411* `Length Required`

Raise if the browser submitted data but no ``Content-Length`` header which
is required for the kind of processing the server does.
i  zOA request with this method requires a valid <code>Content-Length</code> header.r5   Nrf   r5   r    r   r   r     s     D	  r    r   c                       \ rS rSrSrSrSrSrg)PreconditionFailedi  z*412* `Precondition Failed`

Status code used in combination with ``If-Match``, ``If-None-Match``, or
``If-Unmodified-Since``.
i  zGThe precondition on the request for the URL failed positive evaluation.r5   Nrf   r5   r    r   r   r     s     DQ r    r   c                       \ rS rSrSrSrSrSrg)RequestEntityTooLargei  zr*413* `Request Entity Too Large`

The status code one should return if the data submitted exceeded a given
limit.
i  z6The data value transmitted exceeds the capacity limit.r5   Nrf   r5   r    r   r   r     s     DJKr    r   c                       \ rS rSrSrSrSrSrg)RequestURITooLargei  zA*414* `Request URI Too Large`

Like *413* but for too long URLs.
i  zlThe length of the requested URL exceeds the capacity limit for this server. The request cannot be processed.r5   Nrf   r5   r    r   r   r     s    
 D	9 r    r   c                       \ rS rSrSrSrSrSrg)UnsupportedMediaType  z*415* `Unsupported Media Type`

The status code returned if the server is unable to handle the media type
the client transmitted.
i  zFThe server does not support the media type transmitted in the request.r5   Nrf   r5   r    r   r   r     s     DP r    r   c                  x   ^  \ rS rSrSrSrSr    S         S	U 4S jjjr  S
     SU 4S jjjrSr	U =r
$ )RequestedRangeNotSatisfiablei  zr*416* `Requested Range Not Satisfiable`

The client asked for an invalid part of the file.

.. versionadded:: 0.7
i  z.The server cannot provide the requested range.c                8   > [         TU ]  X4S9  Xl        X l        g)zNTakes an optional `Content-Range` header value based on ``length``
parameter.
rP   N)r   r   lengthunits)r   r   r   r   r   r   s        r   r   %RequestedRangeNotSatisfiable.__init__  s     	[D
r    c                   > [         TU ]  X5      nU R                  b,  UR                  SU R                   SU R                   345        U$ )NzContent-Rangez */)r   r6   r   r   r   r   s       r   r6   (RequestedRangeNotSatisfiable.get_headers  sG    
 '%g5;;"NNO

|3t{{m-LMNr    )r   r   )NbytesNN)
r   r   r   rV   r   r   r   rR   rS   rT   rQ   rY   r   rb   s   @r   r   r     s     DBK ""&$(   	
 " 
   +/)-' ' 
	 r    r   c                       \ rS rSrSrSrSrSrg)ExpectationFailedi%  zy*417* `Expectation Failed`

The server cannot meet the requirements of the Expect request-header.

.. versionadded:: 0.7
i  z?The server could not meet the requirements of the Expect headerr5   Nrf   r5   r    r   r   r   %  s     DSKr    r   c                       \ rS rSrSrSrSrSrg)	ImATeapoti1  z*418* `I'm a teapot`

The server should return this if it is a teapot and someone attempted
to brew coffee with it.

.. versionadded:: 0.7
r   z-This server is a teapot, not a coffee machiner5   Nrf   r5   r    r   r   r   1       DAKr    r   c                       \ rS rSrSrSrSrSrg)MisdirectedRequesti>  z421 Misdirected Request

Indicates that the request was directed to a server that is not able to
produce a response.

.. versionadded:: 3.1
i  z-The server is not able to produce a response.r5   Nrf   r5   r    r   r   r   >  r   r    r   c                       \ rS rSrSrSrSrSrg)UnprocessableEntityiK  zp*422* `Unprocessable Entity`

Used if the request is well formed, but the instructions are otherwise
incorrect.
i  zQThe request was well-formed but was unable to be followed due to semantic errors.r5   Nrf   r5   r    r   r   r   K  s     D	 r    r   c                       \ rS rSrSrSrSrSrg)LockediY  zG*423* `Locked`

Used if the resource that is being accessed is locked.
i  z.The resource that is being accessed is locked.r5   Nrf   r5   r    r   r   r   Y  s    
 DBKr    r   c                       \ rS rSrSrSrSrSrg)FailedDependencyic  z*424* `Failed Dependency`

Used if the method could not be performed on the resource
because the requested action depended on another action and that action failed.
i  zThe method could not be performed on the resource because the requested action depended on another action and that action failed.r5   Nrf   r5   r    r   r   r   c  r   r    r   c                       \ rS rSrSrSrSrSrg)PreconditionRequiredir  a  *428* `Precondition Required`

The server requires this request to be conditional, typically to prevent
the lost update problem, which is a race condition between two or more
clients attempting to update a resource through PUT or DELETE. By requiring
each client to include a conditional header ("If-Match" or "If-Unmodified-
Since") with the proper value retained from a recent GET request, the
server ensures that each client has at least seen the previous revision of
the resource.
i  zZThis request is required to be conditional; try using "If-Match" or "If-Unmodified-Since".r5   Nrf   r5   r    r   r   r   r  s    	 D	0 r    r   c                  j   ^  \ rS rSrSr   S       SU 4S jjjr  S     S	U 4S jjjrSrU =r$ )
_RetryAfteri  zAdds an optional ``retry_after`` parameter which will set the
``Retry-After`` header. May be an :class:`int` number of seconds or
a :class:`~datetime.datetime`.
c                0   > [         TU ]  X5        X0l        g r   )r   r   retry_after)r   r   r   r   r   s       r   r   _RetryAfter.__init__  s     	/&r    c                  > [         TU ]  X5      nU R                  (       a`  [        U R                  [        5      (       a  SSKJn  U" U R                  5      nO[        U R                  5      nUR                  SU45        U$ )Nr   )	http_datezRetry-After)	r   r6   r   r   r   r#   r   rV   r   )r   r+   r,   r;   r   rv   r   s         r   r6   _RetryAfter.get_headers  si    
 '%g5$**H55+!$"2"23D,,-NNM512r    )r   r   )r   r   r   rR   r   zdatetime | int | NonerS   rT   rQ   rY   )	rM   rZ   r[   r\   r]   r   r6   r`   ra   rb   s   @r   r   r     sq     #'$(-1	'' "' +	'
 
' ' +/)-' ' 
	 r    r   c                       \ rS rSrSrSrSrSrg)TooManyRequestsi  a#  *429* `Too Many Requests`

The server is limiting the rate at which this user receives
responses, and this request exceeds that rate. (The server may use
any convenient method to identify users and their request rates).
The server may include a "Retry-After" header to indicate how long
the user should wait before retrying.

:param retry_after: If given, set the ``Retry-After`` header to this
    value. May be an :class:`int` number of seconds or a
    :class:`~datetime.datetime`.

.. versionchanged:: 1.0
    Added ``retry_after`` parameter.
i  zBThis user has exceeded an allotted request count. Try again later.r5   Nrf   r5   r    r   r   r     s      DVKr    r   c                       \ rS rSrSrSrSrSrg)RequestHeaderFieldsTooLargei  z*431* `Request Header Fields Too Large`

The server refuses to process the request because the header fields are too
large. One or more individual fields may be too large, or the set of all
headers is too large.
i  z3One or more header fields exceeds the maximum size.r5   Nrf   r5   r    r   r   r     s     DGKr    r   c                       \ rS rSrSrSrSrSrg)UnavailableForLegalReasonsi  z*451* `Unavailable For Legal Reasons`

This status code indicates that the server is denying access to the
resource as a consequence of a legal demand.
i  zUnavailable for legal reasons.r5   Nrf   r5   r    r   r   r     s     D2Kr    r   c                  P   ^  \ rS rSrSrSrSr   S       SU 4S jjjrSrU =r	$ )	InternalServerErrori  z*500* `Internal Server Error`

Raise if an internal server error occurred.  This is a good fallback if an
unknown error occurred in the dispatcher.

.. versionchanged:: 1.0.0
    Added the :attr:`original_exception` attribute.
r   zThe server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.c                ,   > X0l         [        TU ]	  XS9  g )NrP   )original_exceptionr   r   )r   r   r   r   r   s       r   r   InternalServerError.__init__  s     #5[Dr    )r   r   )r   r   r   rR   r   zBaseException | NonerS   rT   )
rM   rZ   r[   r\   r]   r   r   r   r`   ra   rb   s   @r   r   r     sZ     D	1  #'$(37	
E
E "
E 1	
E
 

E 
Er    r   c                       \ rS rSrSrSrSrSrg)NotImplementedi  zh*501* `Not Implemented`

Raise if the application does not support the action requested by the
browser.
i  z@The server does not support the action requested by the browser.r5   Nrf   r5   r    r   r   r     s     DTKr    r   c                       \ rS rSrSrSrSrSrg)
BadGatewayi  z*502* `Bad Gateway`

If you do proxying in your application you should return this status code
if you received an invalid response from the upstream server it accessed
in attempting to fulfill the request.
i  zFThe proxy server received an invalid response from an upstream server.r5   Nrf   r5   r    r   r   r     s     DP r    r   c                       \ rS rSrSrSrSrSrg)ServiceUnavailablei  aB  *503* `Service Unavailable`

Status code you should return if a service is temporarily
unavailable.

:param retry_after: If given, set the ``Retry-After`` header to this
    value. May be an :class:`int` number of seconds or a
    :class:`~datetime.datetime`.

.. versionchanged:: 1.0
    Added ``retry_after`` parameter.
i  zThe server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.r5   Nrf   r5   r    r   r   r     s     D	 r    r   c                       \ rS rSrSrSrSrSrg)GatewayTimeouti!  zh*504* `Gateway Timeout`

Status code you should return if a connection to an upstream server
times out.
i  z/The connection to an upstream server timed out.r5   Nrf   r5   r    r   r   r   !  s     DCKr    r   c                       \ rS rSrSrSrSrSrg)HTTPVersionNotSupportedi,  zo*505* `HTTP Version Not Supported`

The server does not support the HTTP protocol version used in the request.
i  zJThe server does not support the HTTP protocol version used in the request.r5   Nrf   r5   r    r   r   r   ,  s    
 DT r    r   zdict[int, type[HTTPException]]default_exceptionsc                 D   [        5       R                  5        Hr  n  [        U [        5      nU(       a  U R
                  c  M*  [        R                  U R
                  S 5      nUb  [        X5      (       a  M_  U [        U R
                  '   Mt     g ! [         a    Sn Nqf = f)NF)globalsvalues
issubclassr   	TypeErrorr   r   r$   )objis_http_exceptionold_objs      r   _find_exceptionsr   ;  s    y!	& *3 > !CHH$4$((48:c#;#;'*388$ "  	& %	&s   BBBc                  N    \ rS rSrSr  S     SS jjr        S	S jrSrg)
AborteriM  aE  When passed a dict of code -> exception items it can be used as
callable that raises exceptions.  If the first argument to the
callable is an integer it will be looked up in the mapping, if it's
a WSGI application it will be raised in a proxy exception.

The rest of the arguments are forwarded to the exception constructor.
Nc                t    Uc  [         n[        U5      U l        Ub  U R                  R                  U5        g g r   )r   dictmappingupdate)r   r   extras      r   r   Aborter.__init__V  s6    
 ?(GG}LL& r    c                    SSK Jn  [        X5      (       a	  [        US9eXR                  ;  a  [        SU< 35      eU R                  U   " U0 UD6e)Nr   r   )r   zno exception for )sansio.responser   r   r   r   LookupError)r   r   rm   rn   r   s        r   rB   Aborter.__call__a  sS     	.d%%..||# 1$:;;ll4 $1&11r    )r   rQ   )r   %dict[int, type[HTTPException]] | Noner   r  rS   rT   )r   int | Responserm   rw   rn   rw   rS   
t.NoReturn)rM   rZ   r[   r\   r]   r   rB   r`   r5   r    r   r   r   M  sU     :>7;	'6	' 5	' 
		'2"2+02<A2	2r    r   c                "    [        U /UQ70 UD6  g)aX  Raises an :py:exc:`HTTPException` for the given status code or WSGI
application.

If a status code is given, it will be looked up in the list of
exceptions and will raise that exception.  If passed a WSGI application,
it will wrap it in a proxy WSGI exception and raise that::

   abort(404)  # 404 Not Found
   abort(Response('Hello World'))

N)_aborter)statusrm   rn   s      r   abortr  o  s     V%d%f%r    r	  )rS   rT   )r
  r  rm   rw   rn   rw   rS   r  )Er]   
__future__r   typingr?   r   
markupsafer   r   	_internalr   TYPE_CHECKING_typeshed.wsgir	   r
   r   r   r  r   wrappers.requestr   WSGIRequestr9   r:   	Exceptionr   rd   rk   rh   rz   r~   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r^   r   r   r  r	  r5   r    r   <module>r     sR  ,\ #     #??,./)8;i@I i@X "X "D J j E= EP 
} 
!} !HM  
] 
} "= ] 
 
KM K
 

= 
!= !H	T 	T
B 
B
B 
B- C] C} = & -  FWk W*	H- 	H3 3E- E<U] U  ,D] D	m 	 68 2 7+  2 2D& I' r    