14 lines
253 B
Go
14 lines
253 B
Go
|
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")
|
||
|
}
|