ripple-api/app/v1/404.go
2016-04-16 18:05:24 +02:00

23 lines
505 B
Go

package v1
import (
"github.com/gin-gonic/gin"
"github.com/osuripple/api/common"
)
type response404 struct {
common.ResponseBase
Cats string `json:"cats"`
}
// Handle404 handles requests with no implemented handlers.
func Handle404(c *gin.Context) {
c.IndentedJSON(404, response404{
ResponseBase: common.ResponseBase{
Code: 404,
Message: "Oh dear... that API request could not be found! Perhaps the API is not up-to-date? Either way, have a surprise!",
},
Cats: surpriseMe(),
})
}