�
Ϫ�fV5 � � � d Z g d�ZddlmZ ddlmZmZmZ ddlm Z ddl
mZ deee
f dee
fd �Z G d
� de� Z G d� d
e� Z G d� de� Z G d� de� Z G d� de� Z G d� de� Z G d� de� Z G d� de� Z G d� de� Z G d� de� Z G d� de� Z G d � d!e� Z G d"� d#e� Z G d$� d%e� Z G d&� d'e� Zy())z+
Exception definitions for L{twisted.web}.
)�Error�PageRedirect�InfiniteRedirection�RenderError�MissingRenderMethod�MissingTemplateLoader�UnexposedMethodError�UnfilledSlot�UnsupportedType�FlattenerError�RedirectWithNoLocation� )�Sequence)�Optional�Union�cast)�nativeString)� RESPONSES�code�returnc �j � t j t | � � S # t t f$ r Y yw xY w)z�
Returns the response message corresponding to an HTTP code, or None
if the code is unknown or unrecognized.
@param code: HTTP status code, for example C{http.NOT_FOUND}.
@return: A string message or none
N)r �get�int�
ValueError�AttributeError)r s �3/usr/lib/python3/dist-packages/twisted/web/error.py�_codeToMessager s1 � ���}�}�S��Y�'�'����'� ���s � �2�2c �| � e Zd ZU dZeed< |