
    %g-                    V    S r SSKJr  SSKr " S S\R                  5      rSS jrS/rg)z
h2/errors
~~~~~~~~~

Global error code registry containing the established HTTP/2 error codes.

The current registry is available at:
https://tools.ietf.org/html/rfc7540#section-11.4
    )annotationsNc                  P    \ rS rSrSrSrSrSrSrSr	Sr
S	rS
rSrSrSrSrSrSrSrg)
ErrorCodes   z8
All known HTTP/2 error codes.

.. versionadded:: 2.5.0
r                           	   
             N)__name__
__module____qualname____firstlineno____doc__NO_ERRORPROTOCOL_ERRORINTERNAL_ERRORFLOW_CONTROL_ERRORSETTINGS_TIMEOUTSTREAM_CLOSEDFRAME_SIZE_ERRORREFUSED_STREAMCANCELCOMPRESSION_ERRORCONNECT_ERRORENHANCE_YOUR_CALMINADEQUATE_SECURITYHTTP_1_1_REQUIRED__static_attributes__r       +/usr/lib/python3/dist-packages/h2/errors.pyr   r      sp     H N N   M  N F  M   r)   r   c                >     [        U 5      $ ! [         a    U s $ f = f)z
Given an integer error code, returns either one of :class:`ErrorCodes
<h2.errors.ErrorCodes>` or, if not present in the known set of codes,
returns the integer directly.
)r   
ValueError)codes    r*   _error_code_from_intr.   A   s&    $ s   
 )r-   intreturnzErrorCodes | int)r   
__future__r   enumIntEnumr   r.   __all__r   r)   r*   <module>r5      s1    # / /d	 .r)   