I’ve just made a commit to webob,
a Python library which “provides wrappers around the WSGI request environment,
and an object to create WSGI responses” (according to
the webob website).
I admit that this is based solely on wanting to return
“I’m a teapot” from
a Pyramid application, but it does make sense
to support arbitrary HTTP response codes as well.