multitenantStack/controllers/error.go

14 lines
253 B
Go
Raw Normal View History

2018-11-07 15:27:39 +00:00
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")
}