title: beego, redefined page not found, 404 page is not show html, why?
body: <p>I redefined the <code>page_not_found</code> on router.go,  </p>
  
  <pre><code>func page_not_found(rw http.ResponseWriter, r *http.Request) {
      t, _ := template.ParseFiles(beego.ViewsPath + "/404.html")
      data := make(map[string]interface{})
  
      t.Execute(rw, data)
  }
  </code></pre>
  
  <p>and in <code>init</code> function used </p>
  
  <p><code>beego.Errorhandler("404", page_not_found)</code></p>
  
  <p>when i called 404 by used <code>this.Abort("404")</code> in controller, the 404 page was not show html, it showed the page html text, liked this</p>
  
  <p><img src="https://i.stack.imgur.com/KIkWc.png" alt="html text/plain"></p>