package controllers type ErrorController struct { BaseController } func (c *ErrorController) Error404() { c.ServeJsonErrorWithCode(404, "Not Found") } func (c *ErrorController) Error500() { c.ServeJsonErrorWithCode(500, "Internal Server Error") }