Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
exceptions.cpython-313.pyc406 linesDownload Raw Back to __pycache__
1�

2��ji��F�%SrSSKJr SSKrSSKJr SSKJr SSKJr SSK	J3r4 \R(a$SS	KJ
r
 SS5KJr SSKJr SSKJr SS
KJr SSKJr "SS\5r"SS\5r"SS\\5r"SS\5r"SS\5r"SS\5r "SS\5r!"SS\5r""SS\5r#"S S!\5r$"S"S#\5r%"S$S%\5r&"S&S'\5r'"S(S)\5r("S*S+\5r)"S,S-\5r*"S.S/\5r+"S0S1\5r,"S2S3\5r-"S4S5\5r."S6S7\5r/"S8S9\5r0"S:S;\5r1"S<S=\5r2"S>S?\5r3"S@SA\5r4"SBSC\5r5"SDSE\5r6"SFSG\65r7"SHSI\5r8"SJSK\5r9"SLSM\5r:"SNSO\5r;"SPSQ\5r<"SRSS\65r="STSU\5r>"SVSW\5r?0r@SX\ASY'S_SZjrB\B"5 CB"S[S\5rCS`S]jrD\C"5rES\\AS^'g)aa�Implements a number of Python exceptions which can be raised from within6a view to trigger a standard HTTP non-200 response.7 8Usage Example9-------------10 11.. code-block:: python12 13    from werkzeug.wrappers.request import Request14    from werkzeug.exceptions import HTTPException, NotFound15 16    def view(request):17        raise NotFound()18 19    @Request.application20    def application(request):21        try:22            return view(request)23        except HTTPException as e:24            return e25 26As you can see from this example those exceptions are callable WSGI27applications. However, they are not Werkzeug response objects. You28can get a response object by calling ``get_response()`` on a HTTP29exception.30 31Keep in mind that you may have to pass an environ (WSGI) or scope32(ASGI) to ``get_response()`` because some errors fetch additional33information relating to the request.34 35If you want to hook in a different exception page to say, a 404 status36code, you can add a second except for a specific subclass of an error:37 38.. code-block:: python39 40    @Request.application41    def application(request):42        try:43            return view(request)44        except NotFound as e:45            return not_found(request)46        except HTTPException as e:47            return e48 49�)�annotationsN)�datetime)�escape)�Markup�)�_get_environ)�
StartResponse)�WSGIEnvironment��WWWAuthenticate��Response)�Requestc�^�\rSrSr%SrSrS\S'SrS\S'SSU4Sjjjr\	SS	j5r50SSS51jjrSSSjjrSSSjjr
\RSSS
jj5r\RSSSjj5rSSSjjrSSjrSSjrSSjrSrU=r$)�
HTTPException�CaThe base class for all HTTP exceptions. This exception can be called as a WSGI52application to render a default error page or you can catch the subclasses53of it independently and render nicer error messages.54 55.. versionchanged:: 2.156    Removed the ``wrap`` class method.57N�58int | None�code�59str | None�descriptionc�@>�[TU]5 UbXlX lg�N)�super�__init__r�response)�selfrr�	__class__s   ��YD:\code\apps\devtools\python\user_packages\Python313\site-packages\werkzeug/exceptions.pyr�HTTPException.__init__Os!���60	�����"�*�� �
�c�F�SSKJn URURS5$)zThe status name.r)�HTTP_STATUS_CODESz
Unknown Error)�httpr"�getr)rr"s  r�name�HTTPException.nameYs��	,� �$�$�T�Y�Y��@�@r c��URcSnOURn[U5RS[S55nSUS3$)zGet the description.��61z<br>z<p>z</p>)rr�replacer)r�environ�scopers    r�get_description�HTTPException.get_description`sJ�����#��K��*�*�K��[�)�1�1�$��v��G���[�M��&�&r c62��SURS[UR5S[UR5SURU5S3	$)zGet the HTML body.z&<!doctype html>63<html lang=en>64<title>� z
</title>65<h1>z</h1>66r))rrr%r-�rr+r,s   r�get_body�HTTPException.get_bodynsS��
��i�i�[��&����"3�!4�5��$�)�)�$�%�W��#�#�G�,�-�R�	
1�	67r c��S/$)zGet a list of headers.)zContent-Typeztext/html; charset=utf-8�r1s   r�get_headers�HTTPException.get_headers|s
��=�=�=r c��grr5r1s   r�get_response�HTTPException.get_response�s��68r c��grr5r1s   rr9r:�s��69r c���SSKJn URbUR$Ub[U5nUR	X5nU"URX5URU5$)a�Get a response object.70 71:param environ: A WSGI environ dict or request object. If given, may be72    used to customize the response based on the request.73:param scope: An ASGI scope dict. If given, may be used to customize the74    response based on the request.75:return: A WSGI :class:`werkzeug.wrappers.Response` if called without76    arguments or with ``environ``. A sans-IO77    :class:`werkzeug.sansio.Response` for ASGI if called with78    ``scope``.79rr
)�wrappers.responserrrr6r2r)rr+r,r�headerss     rr9r:�sW�� 	0��=�=�$��=�=� ���"�7�+�G��"�"�7�2����
�
�g�5�t�y�y�'�J�Jr c�4�URU5nU"X5$)z�Call the exception as WSGI application.80 81:param environ: the WSGI environment.82:param start_response: the response callable provided by the WSGI83                       server.84)r9)rr+�start_responsers    r�__call__�HTTPException.__call__�s���$�$�W�-����0�0r c�t�URbUROSnUSURSUR3$)N�???r0�: )rr%r�rrs  r�__str__�HTTPException.__str__�s8�� �I�I�1�t�y�y�u����q�����2�d�&6�&6�%7�8�8r c��URbUROSnS[U5RSUSURS3$)NrD�<z 'rEz'>)r�type�__name__r%rFs  r�__repr__�HTTPException.__repr__�s@�� �I�I�1�t�y�y�u���4��:�&�&�'�r�$��r�$�)�)��B�?�?r �rr�NN)rrr�SansIOResponse | None�return�None�rR�str)r+�WSGIEnvironment | Noner,�dict[str, t.Any] | NonerRrU�r+rVr,rWrRzlist[tuple[str, str]]).N)r+�$WSGIEnvironment | WSGIRequest | Noner,rSrR�WSGIResponse)N.)r+rSr,zdict[str, t.Any]rR�SansIOResponse)r+rYr,rWrRzWSGIResponse | SansIOResponse)r+r85r@r	rRzt.Iterable[bytes])rL�86__module__�__qualname__�__firstlineno__�__doc__r�__annotations__rr�propertyr%r-r2r6�t�overloadr9rArGrM�__static_attributes__�
__classcell__�rs@rrrCs������D�*��"�K��"�#'�*.�!��!�(�!�87�	!�!��A��A�+/�)-�'�'�'�'�'�88
�	'� +/�)-�89�'�90�'�91�92
�	93� +/�)-�>�'�>�'�>�94�	>��Z�Z�9<���5����95�	���96�Z�Z��"%���� ��97�	���9=�)-�K�5�K�'�K�98'�	K�2991�&�1001�8E�1011�	�1021�9�@�@r rc� �\rSrSrSrSrSrSrg)�103BadRequest�zv*400* `Bad Request`104 105Raise if the browser sends something to the application the application106or server cannot handle.107�zLThe browser (or proxy) sent a request that this server could not understand.r5N�rLr\r]r^r_rrrdr5r rrhrh�s����D�V�r rhc�^�\rSrSrSr\RrSrSS	U4Sjjjr	\108S109Sj5r\RSSj5rSrU=r
$)�BadRequestKeyError��zxAn exception that is used to signal both a :exc:`KeyError` and a110:exc:`BadRequest`. Used by many of the datastructures.111Fc�>�[TU]"U0UD6 Uc[RU5 g[RX5 gr)rr�KeyError)r�arg�args�kwargsrs    �rr�BadRequestKeyError.__init__�s6���
���$�)�&�)��;����d�#����d�(r c��UR(a5URS[RS[R	U53$UR$)Nr)rE)�show_exception�_descriptionrprLrG)rs rr�BadRequestKeyError.description�sI������'�'�(��8�+<�+<�*=�R��@P�@P�QU�@V�?W�X�X�� � � r c��Xlgr�rw)r�values  rrrx�s��!�r rzr)rqz
object | Nonerr�t.Anyrsr|rT)r{rUrRrS)rLr\r]r^r_rhrrwrvrra�setterrdrerfs@rrmrm�sT�����)�)�L��N�)�)��!��!����"��"r rmc��\rSrSrSrSrg)�ClientDisconnected��aInternal exception that is raised if Werkzeug detects a disconnected112client.  Since the client is already gone at that point attempting to113send the error message to the client might not work and might ultimately114result in another exception in the server.  Mainly this is here so that115it is silenced by default as far as Werkzeug is concerned.116 117Since disconnections cannot be reliably detected and are unspecified118by WSGI to a large extent this might or might not be raised if a client119is gone.120 121.. versionadded:: 0.8122r5N�rLr\r]r^r_rdr5r rrr�s��r rc��\rSrSrSrSrg)�
SecurityError��z{Raised if something triggers a security error.  This is otherwise123exactly like a bad request error.124 125.. versionadded:: 0.9126r5Nr�r5r rr�r��s��r r�c��\rSrSrSrSrg)�BadHostizKRaised if the submitted host is badly formatted.127 128.. versionadded:: 0.11.2129r5Nr�r5r rr�r�s��r r�c�r^�\rSrSrSrSrSrSS	U4SjjjrS130SU4SjjjrSr	U=r131$)�Unauthorizedia*401* ``Unauthorized``132 133Raise if the user is not authorized to access a resource.134 135The ``www_authenticate`` argument should be used to set the136``WWW-Authenticate`` header. This is used for HTTP basic auth and137other schemes. Use :class:`~werkzeug.datastructures.WWWAuthenticate`138to create correctly formatted values. Strictly speaking a 401139response is invalid if it doesn't provide at least one value for140this header, although real clients typically don't care.141 142:param description: Override the default message used for the body143    of the response.144:param www-authenticate: A single value, or list of values, for the145    WWW-Authenticate header(s).146 147.. versionchanged:: 2.0148    Serialize multiple ``www_authenticate`` items into multiple149    ``WWW-Authenticate`` headers, rather than joining them150    into a single value, for better interoperability.151 152.. versionchanged:: 0.15.3153    If the ``www_authenticate`` argument is not set, the154    ``WWW-Authenticate`` header is not set.155 156.. versionchanged:: 0.15.3157    The ``response`` argument was restored.158 159.. versionchanged:: 0.15.1160    ``description`` was moved back as the first argument, restoring161     its previous position.162 163.. versionchanged:: 0.15.0164    ``www_authenticate`` was added as the first argument, ahead of165    ``description``.166i�z�The 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>�[TU]X5 SSKJn [	X45(aU4nX0lg)Nrr)rr�datastructuresr�167isinstance�www_authenticate)rrrr�rrs     �rr�Unauthorized.__init__6s0���	����/�3��&�8�8� 0�2�� 0�r c�>�[TU]X5nUR(a"URSUR55 U$)Nc3�<# �UHnS[U54v� M g7f)zWWW-AuthenticateN)rU)�.0�xs  r�	<genexpr>�+Unauthorized.get_headers.<locals>.<genexpr>Ls���W�AV�A�.��A��7�AV�s�)rr6r��extend�rr+r,r>rs    �rr6�Unauthorized.get_headersEs:���168�'�%�g�5��� � ��N�N�W��AV�AV�W�W��r )r��NNN)rrrrQr�z6None | (WWWAuthenticate | t.Iterable[WWWAuthenticate])rRrSrPrX�rLr\r]r^r_rrrr6rdrerfs@rr�r�s����#�J�D�	3��#'�*.�SW�	
1��
1�(�
1�Q�	
1�169170�
1�
1�"+/�)-��'��'��171�	�r r�c� �\rSrSrSrSrSrSrg)�	ForbiddeniPzs*403* `Forbidden`172 173Raise if the user doesn't have the permission for the requested resource174but was authenticated.175i�zzYou don't have the permission to access the requested resource. It is either read-protected or not readable by the server.r5Nrkr5r rr�r�P�����D�	�r r�c� �\rSrSrSrSrSrSrg)�NotFoundi_zI*404* `Not Found`176 177Raise if a resource does not exist and never existed.178i�zxThe requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.r5Nrkr5r rr�r�_s���179�D�	F�r r�c�r^�\rSrSrSrSrSrSS	U4SjjjrS180SU4SjjjrSr	U=r181$)�MethodNotAllowedilay*405* `Method Not Allowed`182 183Raise if the server used a method the resource does not handle.  For184example `POST` if the resource is view only.  Especially useful for REST.185 186The first argument for this exception should be a list of allowed methods.187Strictly speaking the response would be invalid if you don't provide valid188methods in the header which you can do with that list.189i�z0The method is not allowed for the requested URL.c�,>�[TU]X#S9 Xlg)zcTakes an optional list of valid http methods190starting with werkzeug 0.3 the list will be mandatory.rON)rr�
valid_methods)rr�rrrs    �rr�MethodNotAllowed.__init__zs���	���[��D�*�r c�>�[TU]X5nUR(a,URSSR	UR545 U$)N�Allowz, )rr6r��append�joinr�s    �rr6�MethodNotAllowed.get_headers�sB���191�'�%�g�5������N�N�G�T�Y�Y�t�/A�/A�%B�C�D��r )r�r�)r�zt.Iterable[str] | NonerrrrQrRrSrPrXr�rfs@rr�r�ls}�����D�D�K�15�"&�*.�		+�-�	+� �	+�(�		+�192193�	+�	+�+/�)-��'��'��194�	�r r�c� �\rSrSrSrSrSrSrg)�
NotAcceptablerjzw*406* `Not Acceptable`195 196Raise if the server can't return any content conforming to the197`Accept` headers of the client.198i�z�The 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.r5Nrkr5r rr�r��s����D�	(�r r�c� �\rSrSrSrSrSrSrg)�RequestTimeout�z7*408* `Request Timeout`199 200Raise to signalize a timeout.201i�zqThe server closed the network connection because the browser didn't finish the request within the specified time.r5Nrkr5r rr�r��s���202�D�	@�r r�c� �\rSrSrSrSrSrSrg)�Conflict�z�*409* `Conflict`203 204Raise to signal that a request cannot be completed because it conflicts205with the current state on the server.206 207.. versionadded:: 0.7208i�z~A conflict happened while processing the request. The resource might have been modified while the request was being processed.r5Nrkr5r rr�r��s����D�	�r r�c� �\rSrSrSrSrSrSrg)�Gonei�zY*410* `Gone`209 210Raise if a resource existed previously and went away without new location.211i�z�The 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.r5Nrkr5r rr�r��s���212�D�	A�r r�c� �\rSrSrSrSrSrSrg)�LengthRequiredi�z�*411* `Length Required`213 214Raise if the browser submitted data but no ``Content-Length`` header which215is required for the kind of processing the server does.216i�zOA request with this method requires a valid <code>Content-Length</code> header.r5Nrkr5r rr�r��s����D�	 �r r�c� �\rSrSrSrSrSrSrg)�PreconditionFailedi�z*412* `Precondition Failed`217 218Status code used in combination with ``If-Match``, ``If-None-Match``, or219``If-Unmodified-Since``.220i�zGThe precondition on the request for the URL failed positive evaluation.r5Nrkr5r rr�r��s����D�Q�r r�c� �\rSrSrSrSrSrSrg)�RequestEntityTooLargei�zr*413* `Request Entity Too Large`221 222The status code one should return if the data submitted exceeded a given223limit.224i�z6The data value transmitted exceeds the capacity limit.r5Nrkr5r rr�r��s����D�J�Kr r�c� �\rSrSrSrSrSrSrg)�RequestURITooLargei�zA*414* `Request URI Too Large`225 226Like *413* but for too long URLs.227i�zlThe length of the requested URL exceeds the capacity limit for this server. The request cannot be processed.r5Nrkr5r rr�r��s���228�D�	9�r r�c� �\rSrSrSrSrSrSrg)�UnsupportedMediaTypei�z�*415* `Unsupported Media Type`229 230The status code returned if the server is unable to handle the media type231the client transmitted.232i�zFThe server does not support the media type transmitted in the request.r5Nrkr5r rr�r��s����D�P�r r�c�x^�\rSrSrSrSrSrSS	U4SjjjrS233SU4SjjjrSr	U=r234$)�RequestedRangeNotSatisfiableizr*416* `Requested Range Not Satisfiable`235 236The client asked for an invalid part of the file.237 238.. versionadded:: 0.7239r�z.The server cannot provide the requested range.c�8>�[TU]X4S9 XlX lg)zNTakes an optional `Content-Range` header value based on ``length``240parameter.241rON)rr�length�units)rr�r�rrrs     �rr�%RequestedRangeNotSatisfiable.__init__s���	���[��D����242r c�>�[TU]X5nURb,URSURSUR345 U$)Nz
Content-Rangez */)rr6r�r�r�r�s    �rr6�(RequestedRangeNotSatisfiable.get_headers%sG���243�'�%�g�5���;�;�"��N�N�O��244�245�|�3�t�{�{�m�-L�M�N��r )r�r�)N�bytesNN)246r�rr�rUrrrrQrRrSrPrXr�rfs@rr�r�s������D�B�K�"��"&�*.������ �	�247(��248�
�� +/�)-��'��'��249�	�r r�c� �\rSrSrSrSrSrSrg)�ExpectationFailedi0zy*417* `Expectation Failed`250 251The server cannot meet the requirements of the Expect request-header.252 253.. versionadded:: 0.7254i�z?The server could not meet the requirements of the Expect headerr5Nrkr5r rr�r�0s����D�S�Kr r�c� �\rSrSrSrSrSrSrg)�	ImATeapoti<z�*418* `I'm a teapot`255 256The server should return this if it is a teapot and someone attempted257to brew coffee with it.258 259.. versionadded:: 0.7260i�z-This server is a teapot, not a coffee machiner5Nrkr5r rr�r�<�����D�A�Kr r�c� �\rSrSrSrSrSrSrg)�MisdirectedRequestiIz�421 Misdirected Request261 262Indicates that the request was directed to a server that is not able to263produce a response.264 265.. versionadded:: 3.1266i�z-The server is not able to produce a response.r5Nrkr5r rr�r�Ir�r r�c� �\rSrSrSrSrSrSrg)�UnprocessableEntityiVzp*422* `Unprocessable Entity`267 268Used if the request is well formed, but the instructions are otherwise269incorrect.270i�zQThe request was well-formed but was unable to be followed due to semantic errors.r5Nrkr5r rr�r�Vs����D�	�r r�c� �\rSrSrSrSrSrSrg)�LockedidzG*423* `Locked`271 272Used if the resource that is being accessed is locked.273i�z.The resource that is being accessed is locked.r5Nrkr5r rr�r�ds���274�D�B�Kr r�c� �\rSrSrSrSrSrSrg)�FailedDependencyinz�*424* `Failed Dependency`275 276Used if the method could not be performed on the resource277because the requested action depended on another action and that action failed.278i�z�The method could not be performed on the resource because the requested action depended on another action and that action failed.r5Nrkr5r rr�r�nr�r r�c� �\rSrSrSrSrSrSrg)�PreconditionRequiredi}a�*428* `Precondition Required`279 280The server requires this request to be conditional, typically to prevent281the lost update problem, which is a race condition between two or more282clients attempting to update a resource through PUT or DELETE. By requiring283each client to include a conditional header ("If-Match" or "If-Unmodified-284Since") with the proper value retained from a recent GET request, the285server ensures that each client has at least seen the previous revision of286the resource.287i�zZThis request is required to be conditional; try using "If-Match" or "If-Unmodified-Since".r5Nrkr5r rr�r�}s��	��D�	0�r r�c�j^�\rSrSrSrSSU4SjjjrSS	U4SjjjrSrU=r$)288�_RetryAfteri�z�Adds an optional ``retry_after`` parameter which will set the289``Retry-After`` header. May be an :class:`int` number of seconds or290a :class:`~datetime.datetime`.291c�0>�[TU]X5 X0lgr)rr�retry_after)rrrr�rs    �rr�_RetryAfter.__init__�s���	����/�&�r c�>�[TU]X5nUR(a`[UR[5(aSSKJn U"UR5nO[UR5nURSU45 U$)Nr)�	http_datezRetry-After)	rr6r�r�rr#r�rUr�)rr+r,r>r�r{rs      �rr6�_RetryAfter.get_headers�si���292�'�%�g�5������$�*�*�H�5�5�+�!�$�"2�"2�3���D�,�,�-���N�N�M�5�1�2��r )r�r�)rrrrQr�zdatetime | int | NonerRrSrPrX)	rLr\r]r^r_rr6rdrerfs@rr�r��sq����#'�*.�-1�	'��'�(�'�+�	'�293294�'�'�+/�)-��'��'��295�	�r r�c� �\rSrSrSrSrSrSrg)�TooManyRequestsi�a#*429* `Too Many Requests`296 297The server is limiting the rate at which this user receives298responses, and this request exceeds that rate. (The server may use299any convenient method to identify users and their request rates).300The server may include a "Retry-After" header to indicate how long301the user should wait before retrying.302 303:param retry_after: If given, set the ``Retry-After`` header to this304    value. May be an :class:`int` number of seconds or a305    :class:`~datetime.datetime`.306 307.. versionchanged:: 1.0308    Added ``retry_after`` parameter.309r�zBThis user has exceeded an allotted request count. Try again later.r5Nrkr5r rr�r��s��� �D�V�Kr r�c� �\rSrSrSrSrSrSrg)�RequestHeaderFieldsTooLargei�z�*431* `Request Header Fields Too Large`310 311The server refuses to process the request because the header fields are too312large. One or more individual fields may be too large, or the set of all313headers is too large.314i�z3One or more header fields exceeds the maximum size.r5Nrkr5r rr�r��s����D�G�Kr r�c� �\rSrSrSrSrSrSrg)�UnavailableForLegalReasonsi�z�*451* `Unavailable For Legal Reasons`315 316This status code indicates that the server is denying access to the317resource as a consequence of a legal demand.318i�zUnavailable for legal reasons.r5Nrkr5r rr�r��s����D�2�Kr r�c�P^�\rSrSrSrSrSrSSU4SjjjrSrU=r	$)	�InternalServerErrori�z�*500* `Internal Server Error`319 320Raise if an internal server error occurred.  This is a good fallback if an321unknown error occurred in the dispatcher.322 323.. versionchanged:: 1.0.0324    Added the :attr:`original_exception` attribute.325i�z�The 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[TU]	XS9 g)NrO)�original_exceptionrr)rrrr�rs    �rr�InternalServerError.__init__�s���#5��
���[��Dr )r�r�)rrrrQr�zBaseException | NonerRrS)326rLr\r]r^r_rrrrdrerfs@rr�r��sZ�����D�	1��#'�*.�37�	327E��328E�(�329E�1�	330E�331332�333E�334Er r�c� �\rSrSrSrSrSrSrg)�NotImplementedi�zh*501* `Not Implemented`335 336Raise if the application does not support the action requested by the337browser.338i�z@The server does not support the action requested by the browser.r5Nrkr5r rr�r��s����D�T�Kr r�c� �\rSrSrSrSrSrSrg)�339BadGatewayiz�*502* `Bad Gateway`340 341If you do proxying in your application you should return this status code342if you received an invalid response from the upstream server it accessed343in attempting to fulfill the request.344i�zFThe proxy server received an invalid response from an upstream server.r5Nrkr5r rr�r�s����D�P�r r�c� �\rSrSrSrSrSrSrg)�ServiceUnavailableiaB*503* `Service Unavailable`345 346Status code you should return if a service is temporarily347unavailable.348 349:param retry_after: If given, set the ``Retry-After`` header to this350    value. May be an :class:`int` number of seconds or a351    :class:`~datetime.datetime`.352 353.. versionchanged:: 1.0354    Added ``retry_after`` parameter.355i�z�The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.r5Nrkr5r rr�r�s����D�	�r r�c� �\rSrSrSrSrSrSrg)�GatewayTimeouti,zh*504* `Gateway Timeout`356 357Status code you should return if a connection to an upstream server358times out.359i�z/The connection to an upstream server timed out.r5Nrkr5r rr�r�,s����D�C�Kr r�c� �\rSrSrSrSrSrSrg)�HTTPVersionNotSupportedi7zo*505* `HTTP Version Not Supported`360 361The server does not support the HTTP protocol version used in the request.362i�zJThe server does not support the HTTP protocol version used in the request.r5Nrkr5r rr�r�7s���363�D�T�r r�zdict[int, type[HTTPException]]�default_exceptionsc�D�[5R5Hrn[U[5nU(a
UR364cM*[RUR365S5nUb[X5(aM_U[UR366'Mt g![a SnNqf=f)NF)�globals�values�367issubclassr�	TypeErrorrr�r$)�obj�is_http_exception�old_objs   r�_find_exceptionsr�Fs����y���!��	&� *�3�
� >��!�C�H�H�$4��$�(�(����4�8����:�c�#;�#;��'*��3�8�8�$�"���	&� %��	&�s�B�B�Bc�N�\rSrSrSrSSSjjrS	SjrSrg)368�AborteriXaEWhen passed a dict of code -> exception items it can be used as369callable that raises exceptions.  If the first argument to the370callable is an integer it will be looked up in the mapping, if it's371a WSGI application it will be raised in a proxy exception.372 373The rest of the arguments are forwarded to the exception constructor.374Nc�t�Uc[n[U5UlUbURRU5 ggr)r��dict�mapping�update)rr��extras   rr�Aborter.__init__as6��375�?�(�G��G�}������L�L����&�r c��SSKJn [X5(a	[US9eXR;a[SU<35eURU"U0UD6e)Nrr
)rzno exception for )�sansio.responserr�rr��LookupError)rrrrrsrs     rrA�Aborter.__call__lsS��	.��d�%�%���.�.��|�|�#�� 1�$��:�;�;��l�l�4� �$�1�&�1�1r )r�rP)r��%dict[int, type[HTTPException]] | NonerrrRrS)r�int | SansIOResponserrr|rsr|rR�376t.NoReturn)rLr\r]r^r_rrArdr5r rr�r�XsU���:>�7;�	'�6�	'�5�	'�377�		'�2�(�2�16�2�BG�2�	�2r r�c�"�[U/UQ70UD6 g)aXRaises an :py:exc:`HTTPException` for the given status code or WSGI378application.379 380If a status code is given, it will be looked up in the list of381exceptions and will raise that exception.  If passed a WSGI application,382it will wrap it in a proxy WSGI exception and raise that::383 384   abort(404)  # 404 Not Found385   abort(Response('Hello World'))386 387N)�_aborter)�statusrrrss   r�abortr
zs��
�V�%�d�%�f�%r r)rRrS)rrrrr|rsr|rRr	)Fr_�388__future__r�typingrbr�389markupsaferr�	_internalr�
TYPE_CHECKING�_typeshed.wsgir	r390r�rrrr[�wrappers.requestr�WSGIRequestr=rZ�	Exceptionrrhrprmrr�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
rr5r r�<module>rsQ��,�\#�����#��?�?�,�.�/�;�8�;�x@�I�x@�v391��392�"��X�"�>����J���j��E�=�E�P�
��393�}�394�!�}�!�H
�M�
� 395�]�396��}��"�=���]��397��398�K�M�K�399��400�401�=�402�!�=�!�H	T�
�	T�403B�
�404B�405B��406B��-��C�]�C��}���=��& �-� �FW�k�W�*	H�-�	H�3��3�E�-�E�<U�]�U�������,D�]�D�	�m�	�68��2�7�+����2�2�D&��I��'�r 
codekingpro/portable-devtools · Team Ai