package controllers import "pink_fox/packages/fw" type HttpErrorController struct { app HttpErrorControllerServices } type HttpErrorControllerServices interface { fw.BaseServices } func NewHttpErrorController(services HttpErrorControllerServices) *HttpErrorController { return &HttpErrorController{ app: services, } } func (it *HttpErrorController) Page404() (fw.Response, fw.Error) { return it.app.ResponseFactory().HtmlError(404, "general"), nil } func (it *HttpErrorController) Api404() (fw.Response, fw.Error) { return it.app.ResponseFactory().HtmlError(404, "api"), nil } func (it *HttpErrorController) Back404() (fw.Response, fw.Error) { return it.app.ResponseFactory().HtmlError(404, "back"), nil }