Remove Message from 404 response, to allow easy distinction between missing method and data not found

This commit is contained in:
Howl 2016-06-13 21:47:35 +02:00
parent da6fcb83f7
commit 2f027ce853

View File

@ -14,8 +14,7 @@ type response404 struct {
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!",
Code: 404,
},
Cats: surpriseMe(),
})