Support additional headers in the error renderer.

I.e. for setting a proper Content-Type response header.
Small tweaks.