docs: def template_response(self, template_name, headers={}, **values):
          """
          Constructs a response, allowing custom template name and content_type
          """
          response = make_response(
              self.render_template(template_name, **values))
  
          for field, value in headers.items():
              response.headers.set(field, value)
  
          return response