I redefined the page_not_found
on router.go,
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)
}
and in init
function used
beego.Errorhandler("404", page_not_found)
when i called 404 by used this.Abort("404")
in controller, the 404 page was not show html, it showed the page html text, liked this