code: def text_response(text, status='200 OK', content_type='text/plain; charset=utf-8'):
          
          encoded_text = text.encode('utf-8')
          status_headers = StatusAndHeaders(status,
                                            [('Content-Type', content_type),
                                             ('Content-Length', str(len(encoded_text)))])
  
          return WbResponse(status_headers, value=[encoded_text])
docs: Utility method for constructing a text response.
  
          :param str text: The text response body
          :param str content_type: The content-type of the response
          :param str status: The HTTP status line
          :return: WbResponse text response
          :rtype: WbResponse