ripple-api/app/v1/404.go

16 lines
391 B
Go
Raw Normal View History

2016-04-03 17:59:27 +00:00
package v1
import (
"github.com/gin-gonic/gin"
"github.com/osuripple/api/common"
)
// Handle404 handles requests with no implemented handlers.
func Handle404(c *gin.Context) {
c.IndentedJSON(404, common.Response{
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!",
Data: surpriseMe(),
})
}