code: func (h *TextWriter) WriteCode(w http.ResponseWriter, r *http.Request, code int, e interface{}) {
  	if code == 0 {
  		code = http.StatusOK
  	}
  
  	w.Header().Set("Content-Type", h.contentType)
  	w.WriteHeader(code)
  	fmt.Fprintf(w, "%s", e)
  }
docs: // WriteCode writes a response object to the ResponseWriter and sets a response code.