4 ms·
Coincidentally I just set up a response that uses 418 I'm a teapot about an hour ago. I really wanted 422 Unprocessable Entity, but werkzeug doesn't implement t
by lojack 15y ago
Coincidentally I just set up a response that uses 418 I'm a teapot about an hour ago. I really wanted 422 Unprocessable Entity, but werkzeug doesn't implement that (and for some reason instead implements 418 I'm a teapot).
- bruth 15y agoIt doesn't implement that? https://github.com/mitsuhiko/werkzeug/blob/master/werkzeug/_internal.py#L64 https://github.com/mitsuhiko/werkzeug/blob/master/werkzeug/_...
- lojack 15y agoNegative, that's just a dictionary for looking up the exception name. A pull request for 422 did get accepted today though, so yes, now it does. https://github.com/mitsuhiko/werkzeug/pull/165 https://github.com/mitsuhiko/werkzeug/pull/165