ó
    ýÞ jÐ  ã                  óD   • S r SSKJr  SSKrSSKJr   " S S\5      rS/rg)z#Exceptions used in the auth system.é    )ÚannotationsN)ÚMappingc                  óN   • \ rS rSrSr   S       S	S jjrS
S jrS
S jrSrg)ÚHTTPExceptioné	   aY  HTTP exception that you can raise to return a specific HTTP error response.

Since this is defined in the auth module, we default to a 401 status code.

Args:
    status_code: HTTP status code for the error. Defaults to 401 "Unauthorized".
    detail: Detailed error message. If `None`, uses a default
        message based on the status code.
    headers: Additional HTTP headers to include in the error response.

Example:
    Default:
    ```python
    raise HTTPException()
    # HTTPException(status_code=401, detail='Unauthorized')
    ```

    Add headers:
    ```python
    raise HTTPException(headers={"X-Custom-Header": "Custom Value"})
    # HTTPException(status_code=401, detail='Unauthorized', headers={"WWW-Authenticate": "Bearer"})
    ```

    Custom error:
    ```python
    raise HTTPException(status_code=404, detail="Not found")
    ```
Nc                ón   • Uc   [         R                  " U5      R                  nXl        X l        X0l        g )N)ÚhttpÚ
HTTPStatusÚphraseÚstatus_codeÚdetailÚheaders)Úselfr   r   r   s       ÚW/var/www/html/gaurav/venv/lib/python3.13/site-packages/langgraph_sdk/auth/exceptions.pyÚ__init__ÚHTTPException.__init__'   s-   € ð ‰>Ü—_’_ [Ó1×8Ñ8ˆFØ&ÔØŒØ�ó    c                ó8   • U R                    SU R                   3$ )Nz: )r   r   )r   s    r   Ú__str__ÚHTTPException.__str__3   s   € Ø×"Ñ"Ð# 2 d§k¡k ]Ð3Ð3r   c                óp   • U R                   R                  nU SU R                  < SU R                  < S3$ )Nz(status_code=z	, detail=Ú))Ú	__class__Ú__name__r   r   )r   Ú
class_names     r   Ú__repr__ÚHTTPException.__repr__6   s6   € Ø—^‘^×,Ñ,ˆ
Ø�˜]¨4×+;Ñ+;Ñ*>¸iÈÏÉÁÐVWÐXÐXr   )r   r   r   )i‘  NN)r   Úintr   z
str | Noner   zMapping[str, str] | NoneÚreturnÚNone)r   Ústr)	r   Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r   r   Ú__static_attributes__© r   r   r   r   	   sH   † ñð> Ø!Ø,0ð	
àð
ð ð
ð *ð	
ð
 
õ
ô4÷Yr   r   )	r%   Ú
__future__r   r	   Úcollections.abcr   Ú	Exceptionr   Ú__all__r'   r   r   Ú<module>r,      s*   ðÙ )å "ã Ý #ô/Y�Iô /Yðd Ð
�r   