@@ -9,9 +9,9 @@ class _EnvironContainer(Protocol):
9
9
10
10
class HTTPException (Exception ):
11
11
code : Optional [int ]
12
- description : Optional [str ]
12
+ description : Optional [Text ]
13
13
response : Optional [Response ]
14
- def __init__ (self , description : Optional [str ] = ..., response : Optional [Response ] = ...) -> None : ...
14
+ def __init__ (self , description : Optional [Text ] = ..., response : Optional [Response ] = ...) -> None : ...
15
15
@classmethod
16
16
def wrap (cls , exception : Type [Exception ], name : Optional [str ] = ...) -> Any : ...
17
17
@property
@@ -26,130 +26,135 @@ default_exceptions: Dict[int, Type[HTTPException]]
26
26
27
27
class BadRequest (HTTPException ):
28
28
code : int
29
- description : str
29
+ description : Text
30
30
31
31
class ClientDisconnected (BadRequest ): ...
32
32
class SecurityError (BadRequest ): ...
33
33
class BadHost (BadRequest ): ...
34
34
35
35
class Unauthorized (HTTPException ):
36
36
code : int
37
- description : str
37
+ description : Text
38
+ www_authenticate : Optional [Iterable [object ]]
39
+ def __init__ (
40
+ self ,
41
+ description : Optional [Text ] = ...,
42
+ response : Optional [Response ] = ...,
43
+ www_authenticate : Union [None , Tuple [object , ...], List [object ], object ] = ...,
44
+ ) -> None : ...
38
45
39
46
class Forbidden (HTTPException ):
40
47
code : int
41
- description : str
48
+ description : Text
42
49
43
50
class NotFound (HTTPException ):
44
51
code : int
45
- description : str
52
+ description : Text
46
53
47
54
class MethodNotAllowed (HTTPException ):
48
55
code : int
49
- description : str
56
+ description : Text
50
57
valid_methods : Any
51
58
def __init__ (self , valid_methods : Optional [Any ] = ..., description : Optional [Any ] = ...): ...
52
- def get_headers (self , environ ): ...
53
59
54
60
class NotAcceptable (HTTPException ):
55
61
code : int
56
- description : str
62
+ description : Text
57
63
58
64
class RequestTimeout (HTTPException ):
59
65
code : int
60
- description : str
66
+ description : Text
61
67
62
68
class Conflict (HTTPException ):
63
69
code : int
64
- description : str
70
+ description : Text
65
71
66
72
class Gone (HTTPException ):
67
73
code : int
68
- description : str
74
+ description : Text
69
75
70
76
class LengthRequired (HTTPException ):
71
77
code : int
72
- description : str
78
+ description : Text
73
79
74
80
class PreconditionFailed (HTTPException ):
75
81
code : int
76
- description : str
82
+ description : Text
77
83
78
84
class RequestEntityTooLarge (HTTPException ):
79
85
code : int
80
- description : str
86
+ description : Text
81
87
82
88
class RequestURITooLarge (HTTPException ):
83
89
code : int
84
- description : str
90
+ description : Text
85
91
86
92
class UnsupportedMediaType (HTTPException ):
87
93
code : int
88
- description : str
94
+ description : Text
89
95
90
96
class RequestedRangeNotSatisfiable (HTTPException ):
91
97
code : int
92
- description : str
98
+ description : Text
93
99
length : Any
94
100
units : str
95
101
def __init__ (self , length : Optional [Any ] = ..., units : str = ..., description : Optional [Any ] = ...): ...
96
- def get_headers (self , environ ): ...
97
102
98
103
class ExpectationFailed (HTTPException ):
99
104
code : int
100
- description : str
105
+ description : Text
101
106
102
107
class ImATeapot (HTTPException ):
103
108
code : int
104
- description : str
109
+ description : Text
105
110
106
111
class UnprocessableEntity (HTTPException ):
107
112
code : int
108
- description : str
113
+ description : Text
109
114
110
115
class Locked (HTTPException ):
111
116
code : int
112
- description : str
117
+ description : Text
113
118
114
119
class PreconditionRequired (HTTPException ):
115
120
code : int
116
- description : str
121
+ description : Text
117
122
118
123
class TooManyRequests (HTTPException ):
119
124
code : int
120
- description : str
125
+ description : Text
121
126
122
127
class RequestHeaderFieldsTooLarge (HTTPException ):
123
128
code : int
124
- description : str
129
+ description : Text
125
130
126
131
class UnavailableForLegalReasons (HTTPException ):
127
132
code : int
128
- description : str
133
+ description : Text
129
134
130
135
class InternalServerError (HTTPException ):
131
136
code : int
132
- description : str
137
+ description : Text
133
138
134
139
class NotImplemented (HTTPException ):
135
140
code : int
136
- description : str
141
+ description : Text
137
142
138
143
class BadGateway (HTTPException ):
139
144
code : int
140
- description : str
145
+ description : Text
141
146
142
147
class ServiceUnavailable (HTTPException ):
143
148
code : int
144
- description : str
149
+ description : Text
145
150
146
151
class GatewayTimeout (HTTPException ):
147
152
code : int
148
- description : str
153
+ description : Text
149
154
150
155
class HTTPVersionNotSupported (HTTPException ):
151
156
code : int
152
- description : str
157
+ description : Text
153
158
154
159
class Aborter :
155
160
mapping : Any
0 commit comments