Fixed: human readable error is only sent to browser.

Also, status code is properly sent along when a template is rendered.
I jumped on the occasion to refactor proxy errors management to reuse the custom middleware we use.