code: func (ctx *ReqContext) Handle(status int, title string, err error) {
  	if err != nil {
  		ctx.Logger.Error(title, "error", err)
  		if setting.Env != setting.PROD {
  			ctx.Data["ErrorMsg"] = err
  		}
  	}
  
  	ctx.Data["Title"] = title
  	ctx.Data["AppSubUrl"] = setting.AppSubUrl
  	ctx.Data["Theme"] = "dark"
  
  	ctx.HTML(status, setting.ERR_TEMPLATE_NAME)
  }
docs: // Handle handles and logs error by given status.