Your IP : 216.73.216.213
B
;��]�1 � @ st d Z ddlmZmZ yddlmZ W n ek
r8 Y nX dddddd d
ddd
dgZddlm Z ddl
mZmZm
Z
mZ dd� ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd � d e�ZG dd
� d
e�ZG dd� de�ZG d d� de�ZG d!d"� d"e�ZG d#d
� d
e�ZG d$d%� d%e�Zd&S )'z+
Exception definitions for L{twisted.web}.
� )�division�absolute_import)�ascii�Error�PageRedirect�InfiniteRedirection�RenderError�MissingRenderMethod�MissingTemplateLoader�UnexposedMethodError�UnfilledSlot�UnsupportedType�FlattenerError�RedirectWithNoLocation)� RESPONSES)�unicode�nativeString�
intToBytes�Sequencec C s, yt �t| ��S ttfk
r& dS X dS )a
Returns the response message corresponding to an HTTP code, or None
if the code is unknown or unrecognized.
@type code: L{bytes}
@param code: Refers to an HTTP status code, for example C{http.NOT_FOUND}.
@return: A string message or none
@rtype: L{bytes}
N)r �get�int�
ValueError�AttributeError)�code� r �D/opt/alt/python37/lib64/python3.7/site-packages/twisted/web/error.py�_codeToMessage s r c @ s"