klein
klein copied to clipboard
Use KleinResource, or a subset thereof, in the error handling pipeline
In https://github.com/twisted/klein/pull/139#pullrequestreview-15010666, glyph noted that it may be preferable to reuse code from KleinResource, possible the entire class when handling errors so that we have full consistency in how return values from methods decorated with handle_errors and route are rendered.