Errors code revised.
Added a method to render templates from inside a response.