How to render custom template and return proper status code?

Right, sorry, I misread. :flushed:

If you have a look at the write method on Response, it looks like it is a shortcut to getting the response’s body stream and writing to it, performing getBody() itself.